the file may be saved as Western (ISO Latin 1), but when opening in jEdit, the information at the bottom of the window persistently shows Mac Roman, and the special characters are screwed. (This appears to happen whether the jEdit default file preference is set to Western (ISO Latin 1) or not.)


You MUST the character set the file was saved in with the default character set for jEdit. There is no heuristic way for an editor to figure out the difference between MacRoman and 8859-1 just by looking at the file contents. They are both 256 byte extended Roman character sets. How could it know?

If a file was saved in MacRoman, you have to open it in MacRoman mode, change the buffer encoding to 8859-15 (see next paragraph as to why), then save it. The great thing about jEdit is that you can record this whole routine as a macro, assign it to a key, and quickly apply it to many files. Or you could extend the macro yourself to apply it to a whole directory automatically. Try doing that in BBEdit...

You are actually better off using 8859-15 as the default character encoding. It is the same as 8859-1, but replaces some little-used characters with some missing European language characters. More importantly, it has an official place for the Euro symbol, and 4D is using that encoding it seems when converting to ISO.

Ok, thanks for the feedback. An example into serving pages, which might further show the difficulties we're facing, not just in the text editor, but also in serving pages.

In Active4D.ini, platform charset is left as default (Mac). Below is the content of the script file. In Mac and Windows, the raw characters (outside the Active4D script block) is correctly displayed. The characters written by Active4D are incorrectly displayed. Am I missing something here, or misunderstanding something?

Regards
Mark Howells

<%

set platform charset(A4D Charset ISO Latin1)
set output charset(A4D Charset ISO Latin1)
set output encoding(0)

%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="de" lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
    <title>Untitled</title>
</head>
<body>
äöü
<%

write("äöü")

%>
</body>
</html>_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to