dymo-connect-framework icon indicating copy to clipboard operation
dymo-connect-framework copied to clipboard

Framework fails to decode template files with UTF-8 Byte Order Mark

Open timint opened this issue 3 years ago • 1 comments

I found a critical bug.

The DCM software saves a *.dymo label with a Byte Order Mark (BOM). When passing the contents of the .dymo file to dymo.label.framework.openLabelXml() it fails to decode the XML saying it's invalid. Removing the byte order mark solves the problem.

Byte Order Mark is generally a bad approach. Here are your alternatives for a fix: A) Either implement support for BOM in the DYMO Framework. B) Or stop inserting the byte order mark when using the DCD software.

image

Regex for matching the BOM /^\ufeff/

This bug makes any labels created with the DCD Software invalid for use with the DYMO Framework.

timint avatar Jan 14 '22 21:01 timint

@dymosoftware This is an incompatibility issue of DYMO Connect generated labels not being compatible with the Web Service. Why is this being ignored?

timint avatar Sep 02 '22 16:09 timint