Hi First of all thank you to all the people who have continued this thread and thrown some light on the utf-8 issue.
I can confirm that saving the scripts as a utf-8 file with a BOM does indeed work even with GAE. Vince I have not yet raised a bug report, but as Andy Wu suggests this is probably not an error as such. Steve On Dec 16, 1:21 pm, Andy Wu <[email protected]> wrote: > I don't think there's an issue here as OpenBD behaves the same as CF > when determining the encoding of the file. > > By default, the file.encoding property of the jvm is used (which is > determined from the OS). > > Otherwise, OpenBD will look for a BOM or a <cfprocessingdirective> in > the file to determine it's encoding. > > If you want to have OpenBD treat all files as utf-8 without specifying a > BOM or having a <cfprocessingdirective> in every file, then pass in the > argument -Dfile.encoding=utf-8 to the jvm on startup. > > Andy > > Hugo Ahlenius wrote: > > Hi again, > > > I created two simple test templates - they don't actually contain any cfml, > > just utf-encoded html. One has a BOM, and the other not. I created/edited > > these in VIM, and they look identical in the editor (in terms of character > > display), and they should be encoded in utf-8. > > > The one with BOM displays fine in OpenBD, the other one not. > >http://dev.nordpil.com/temp/utf_test.zip[3 KB] > > > Cheers, > > Hugo > > > -- > > Hugo Ahlenius > > fraxinus (at-sign) oxel.net > >http://www.oxel.net > > > | -----Original Message----- > > | From: [email protected] [mailto:[email protected]] On Behalf > > | Of Peter J. Farrell > > | Sent: Wednesday, December 16, 2009 10:15 > > | To: [email protected] > > | Subject: RE: GAE OpenBd - utf-8 characters > > | > > | The real question is does OpenBD require utf-8 files to have BOM in it? > > | If it requires the BOM to kick the engine to use utf-8, that really should > > | be fixed to *not* require the BOM. By default, it appears that Eclipse > > | *does* not add BOM for utf-8 files (only utf-16le). I found a post on the > > | Eclipse Forums that states this (the question was from Jorge Vergara in > > | regards to CFEclipse). > > | > > | All my files are saved in Eclipse using utf-8 (but I'm assuming Eclipse > > | doesn't add in the BOM because Java in the past didn't compile if there > > | were BOM in the .java files). > > | > > | I have confirmed on the the production system where this is a problem the > > | default character set in the admin is set to UTF-8. Don't tell me I have > > | to cfprocessing directive on each .cfm file? > > | > > | .Peter > > | > > | Hugo Ahlenius said the following on 12/16/2009 02:33 AM: > > | Hi, > > | > > | I have played a bit with this on OpenBD 1.1 (Apache2, Tomcat 5.5.23, > > | WinVista) - my simple test cfm-template does not display ok unless I add a > > | BOM (byte-order mark). Could you maybe test that? > > | > > | > > | > > | -- > > | Hugo Ahlenius > > | fraxinus (at-sign) oxel.net > > |http://www.oxel.net > > | > > | > > | > > | > > | > > | -- > > | > > | Peter J. Farrell > > | Email: [email protected] | p...@maestropublishing > > | Blog: The Harmonious Programmer > > | Twitter/Identi.ca: @maestrofjp > > | -- > > | Open BlueDragon Public Mailing List > > |http://www.openbluedragon.org/http://twitter.com/OpenBlueDragon > > | mailing list -http://groups.google.com/group/openbd?hl=en > > | > > | !! save a network - please trim replies before posting !! > > -- Open BlueDragon Public Mailing List http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon mailing list - http://groups.google.com/group/openbd?hl=en !! save a network - please trim replies before posting !!
