I think the only way to know if this is truly a bug (and Appeon seems to have accepted it as such, at least for the FileEncoding function, since they're going to be scheduling a fix) is to understand how Powerbuilder is determining whether a file is UTF-8 encoded.is it strictly adhering to the presence of the 3 BOM characters at the start of the file or is there something else going on under the covers to make this determination? Just my thoughts.so Michael I agree with your comments for the most part and thanks for describing how you approached trying to understand the issue.
![fileopen plugin ipad fileopen plugin ipad](https://gdm-catalog-fmapi-prod.imgix.net/ProductScreenshot/f6f2b6b6-c62a-486a-9167-68ea567fd67c.png)
![fileopen plugin ipad fileopen plugin ipad](https://www.begin-it.com/media-content/blog/how-to-record-a-video-of-your-iphone-or-ipads-screen-12.png)
NotePad will tell you that file is UTF8 without BOM. But that's error-prone second guessing.ĮX: Open ANY text file ANSI-encoded containing only US characters. UTF8-without-BOM) based on the byte sequences that potentially are non-English characters.
Fileopen plugin ipad full#
NotePad reads the full text file to best-guess its encoding (ANSI vs. You will have difficulty in PowerBuilder if you insist to interpret a text file in conflict with its BOM marker. (2) and (3) are IDENTICAL - EXCEPT (3) has a BOM and (2) doesn't.įileEncoding returns the encoding represented by the BOM marker (ANSI when no known BOM marker). (1) and (2) are IDENTICAL - EXCEPT for the Danish special characters. I then compared file contents via command prompt using "FC /B" > Results > I used NotePad on Windows 10 to save it in 3 different encodings:
![fileopen plugin ipad fileopen plugin ipad](https://f94shop.dk/wp-content/uploads/2016/08/136-thickbox_default-Medicinerlatin-og-klinisk-dansk-Opgavehaefte.jpg)
My test example: Small text file including Danish special characters Æ Ø Å æ ø å. It is the result of wanting to interpret a text file as a different encoding that its BOM indicates.