> I have updated from a4d v5.latest to v6.latest and converted all my source
> file from ANSI to UTF-8 (strange enough: my source files worked well in v5
> but needed to be converted to UTF-8 for v6, even when in both versions the
> platform charset variable was not set, thus defaults).

Nothing strange about it, this change to UTF-8 was well documented. The default 
platform charset in v6 is UTF-8, not ANSI. So Active4D is expecting UTF-8 but 
getting ANSI, so you are bound to get garbage.


> But my included .a4l-Files had to be encoded to "UTF-8 without BOM". A
> simple conversion to UTF-8 (inserting the byte order mask) raised the
> following syntax error:

Don't know what you used to do the conversion, but BOM is basically useless 
with UTF-8. From Wikipedia:

"Byte order has no meaning in UTF-8,[5] so its only use in UTF-8 is to signal 
at the start that the text stream is encoded in UTF-8. The BOM may appear when 
UTF-8 data is converted from other encodings that use a BOM."

Since Active4D is being told via the config that the file is UTF-8, the BOM is 
completely meaningless, thus I don't look for or support it. By the way, 
neither does PHP. Active4D isn't a text editor that needs to convert from one 
format to another, so the BOM has no meaning.


> It seems that the UTF support is only available when the Byte-Order-Mask
> (BOM) is omitted, which excludes some text editors that add the BOM for UTF
> files.

You mean text editors like NotePad and WordPad that by default add the BOM? I'm 
very sorry but I can't support those, they are *not* meant for programming and 
should be avoided. Please something like NotePad++ (which is free) instead. All 
of the programmer's editors I know of save UTF-8 without a BOM by default, and 
its usage can be configured.

Regards,

   Aparajita
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoy.org

_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

Reply via email to