Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Rebol & XML encoding; use encoding="windows-1252"

From: al::bri::xtra::co::nz at: 5-Jul-2002 12:31

After a long and exhausting day or two, I discovered that I've been using the wrong XML character encoding. For Rebol running on Windows PCs creating XML or XHTML files or driving a CGI program from Rebol scripts or plain text files (like windows .txt files), it's best to use this tag: <?xml version="1.0" encoding="windows-1252"?> The problems one gets for not using the above tag, is that MS Internet Explorer (but not Opera or Netscape!) sometimes generates CGI query strings that can look like Chinese characters or long strings of gibberish. I tried the unicode encoding of "UTF-8" and "UTF-16" but get the problem that Rebol doesn't understand scripts written in unicode. Rebol seems only to read 8 bit characters, not the 16 bits (I think?) of unicode. This site: http://www.w3schools.com/xml/xml_encoding.asp helped me the most. Andrew Martin ICQ: 26227169 http://valley.150m.com/