Bartender Integration does not understand the "ó" character from BTXML
Hello,
I have an Bartender Integration set up which processes the BTXML file that end up in a specific folder and prints the corresponding label.
The problem I'm encountering is that one of my printer's tray's name contains an "ó" character, its name being "Bandeja multipropósito" (multiporpouse tray in spannish). The integration's log message interprets said character as ó. Here is the BTXML (shortened version).
<?xml version="1.0" encoding="ISO-8859-1"?>
<XMLScript Version="2.0">
<Command Name="Print Operation">
<Print>
<PrintSetup>
<Printer>Kyocera ECOSYS P3155dn v4 KX (XPS)</Printer>
<PaperTray>Bandeja multipropósito</PaperTray>
<NumberSerializedLabels>1</NumberSerializedLabels>
<IdenticalCopiesOfLabel>1</IdenticalCopiesOfLabel>
</PrintSetup>
<Format>C:\btws_test\test.btw</Format>
<NamedSubString Name="itemId">
<Value>1303320</Value>
</NamedSubString>
</Command>
</XMLScript>
I've tried multiple things. As it can be seen at the top of the BTXML, I've set the XML encoding to ISO-8859-1, which is supposed to correctly read these type of characters. With this, I've also set the Intengration's input data type to the corresponding value.
I've also tried this with other encoding types which process these characters: setting the same thing in the BTXML and in the Integration's configuration.
I am missing something? How can I correctly process
-
Peter Thane
★ BarTender Hero ★
I am not sure, but you may need to do something like in this post
0 -
Aguerricagoitia
★ BarTender Hero ★
The solution was easier than I thought...
I set the encoding to UTF-8 in both the btxml file and the integrations input type; and it wroked.
For some reason I thought that UTF-8 did not accept these type of characters, but it does.
Here's a article that I found interesting as reference https://www.howtogeek.com/45765/htg-explains-what-are-character-encodings-and-how-do-they-differ/
0
Please sign in to leave a comment.
Comments
2 comments