Hi all
I'm encountering a cross-platform problem with file encoding, and
would appreciate a few soundings. We run 4D 2004 with ITK under Mac
OS X Panther (not Server) and I find it more efficient to code in
BBEdit than in jEdit, for now.
By reading the documentation I've re-confirmed that database entries
are handled with Mac Roman encoding. The problem I'm encountering is
when saving scripts - containing A4D scripts, HTML, Javascript, CSS
and A4D libraries - from BBEdit as [UNIX / Western ISO Latin 1]. I
believe that the combination of this and the applicable <meta> tag
(specifying ISO-8859-1) should allow special characters - such as
German umlauted and French accented - to be delivered straight to the
client browser (Win or Mac) without encoding them at all (A4D
Encoding None). This works in tests and in practice for dynamically
generated HTML pages and for XML feeds, which are currently delivered
un-encoded according to standard XML practices and RSS 2.0
specifications.
The problem occurs when I re-open older scripts, which were saved
from BBEdit with [Macintosh / Macintosh Roman] encoding: in these
files special characters in the commenting and source (string values,
for example) are corrupted. This is understandable, as they were
generated (saved in BBEdit) using a different encoding to the one we
now use.
I've already adjusted the settings in BBEdit to ensure that «If
File's Encoding Can't Be Guessed, use» Western (ISO Latin 1) on
opening, and setting default text encoding to Western (ISO Latin 1)
for new documents (no problem there). As far as I can see, BBEdit
appears to be trying to do some kind of conversion on scripts which
haven't been saved as Western (ISO Latin 1), somehow disregarding
their encoding and screwing up the special characters. All of the
files - new and old - can be opened in TextEdit (OS X) without any
transformation at all.
Quite a tale, huh? Does anyone have any experience of this? And is
[UNIX / Western (ISO Latin 1)] the correct combination for cross-
platform scripts? And is it possible to change the encoding of a
batch of scripts without going through them manually, one by one, in
BBEdit?
Many thanks for any suggestions.
Regards
Mark Howells_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/