Convert UTF-8 to windows-874?



Hi group,



I am having a site all encoded in UTF-8, and it works fine. I use AJAX a lot
to send data back and forth to the server.



I have one service that requires that I send the data in windows-874
encoding (SMS gateway in Thailand). So is there anyway I can take the data
that is UTF-8 and then convert it to windows-874 and then send it to the SMS
gateway?



Best regards,

Peter Lauri



www.lauri.se <http://www.lauri.se/> - personal web site

www.dwsasia.com <http://www.dwsasia.com/> - company web site



Relevant Pages

  • Re: Langauge Issue with DOM
    ... I want to display some germen text in my site. ... With my tries about Ajax on a server that does'nt send charset headers ... I have same problem as yours with files in utf-8 only with Safari which wants absolutely to read them in iso-8859-1. ...
    (comp.lang.javascript)
  • RE: [PHP] Convert UTF-8 to windows-874?
    ... Best regards, ... [PHP] Convert UTF-8 to windows-874? ... encoding (SMS gateway in Thailand). ...
    (php.general)
  • RE: [PHP] Convert UTF-8 to windows-874?
    ... I am having a site all encoded in UTF-8, ... encoding (SMS gateway in Thailand). ... Best regards, ...
    (php.general)
  • Re: mime charset problem
    ... This simply instructs the server to announce the ISO-8859-1 encoding for any page in a file with a name ending with ".htm". ... Try finding an authoring tool that can save data in UTF-8 encoding. ... In UTF-8, you can enter _any_ character as such, provided of course that your authoring tool offers some way of typing it. ... By the specs, and by actual practice, browsers will ignore the Ersatz when they get a real HTTP header from a server, with conflicting content. ...
    (alt.html)
  • Re: Character set conversion (through ssh)
    ... that means the shell uses utf-8 and text files are created ... with ssh to the server, I get non-ASCII characters in the terminal all ... could set this in a configuration file, but I dont want it to be permanent, ... "charset" option in .ssh/config, but there isn't. ...
    (comp.unix.shell)