Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105787
interpreted = N
texte = --000e0cd5d000ce0349048fe95190Content-Type: text/plain; charset=UTF-8Govinda,OK - your page, and the ajax page are being served as UTF-8 - but the postto the db is incorrect. It is encoding the pound symbol as: %27%A3whereas it should be %C2%A3I'm no javascript expert but it looks like you shouldn't be using 'escape()'on unicode characters:http://www.dangrossman.info/2007/05/25/handling-utf-8-in-javascript-php-and-non-utf8-databases/the guy on the link above suggests using 'encodeURIComponent(string)'. Would you not consider building your ajax stuff using the Jquery framework- that's my plan when I get the time to sort it.- Tom--000e0cd5d000ce0349048fe95190Content-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printable
Govi=nda,
OK - your page, and the ajax page are being s=erved as UTF-8 - but the post to the db is incorrect. =C2=A0 It is encoding= the pound symbol as:
=C2=A0=C2=A0 %27%A3
whereas it should be
=C2=A0=C2==A0 %C2%A3
I'm no javascript expert but it looks like you shoul=dn't be using 'escape()' on unicode characters:
the guy on the link above suggests using 'encodeURIComponent(=string)'. =C2=A0 =C2=A0Would you not consider building your ajax stuff =using the Jquery framework - that's my plan when I get the time to sort= it.
=
- Tom
=
--000e0cd5d000ce0349048fe95190--
Associated Messages, from the most recent to the oldest:
|
- Re: -- SOLVED -- [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Govinda 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Christer Olsson 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Govinda 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Tom Duke 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Govinda 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Tom Duke 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Govinda 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Govinda 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Tom Duke 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Govinda 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Govinda 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Tom Duke 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Govinda 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Govinda 2010)
- Re: [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Tom Duke 2010)
- [WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (Govinda 2010)
|
--000e0cd5d000ce0349048fe95190Content-Type: text/plain; charset=UTF-8Govinda,OK - your page, and the ajax page are being served as UTF-8 - but the postto the db is incorrect. It is encoding the pound symbol as: %27%A3whereas it should be %C2%A3I'm no javascript expert but it looks like you shouldn't be using 'escape()'on unicode characters:http://www.dangrossman.info/2007/05/25/handling-utf-8-in-javascript-php-and-non-utf8-databases/the guy on the link above suggests using 'encodeURIComponent(string)'. Would you not consider building your ajax stuff using the Jquery framework- that's my plan when I get the time to sort it.- Tom--000e0cd5d000ce0349048fe95190Content-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printable
Govi=nda,
OK - your page, and the ajax page are being s=erved as UTF-8 - but the post to the db is incorrect. =C2=A0 It is encoding= the pound symbol as:
=C2=A0=C2=A0 %27%A3
whereas it should be
=C2=A0=C2==A0 %C2%A3
I'm no javascript expert but it looks like you shoul=dn't be using 'escape()' on unicode characters:
the guy on the link above suggests using 'encodeURIComponent(=string)'. =C2=A0 =C2=A0Would you not consider building your ajax stuff =using the Jquery framework - that's my plan when I get the time to sort= it.
=
- Tom
=
--000e0cd5d000ce0349048fe95190--
Tom Duke
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Dubble Bubba (1999)
Re:Merging databases (1997)
Editing HTML Pages w/WCAT (1998)
Multiple FlushDatabases (2000)
Browser based content... (2004)
Find all in search. (2002)
changing prices in cart (1997)
fax orders (2003)
'page impression' techniques for banner ads (1999)
[append] vs. [appendfile] delta + question? (1997)
file browser. (2002)
quantity limit (1998)
Is there a max number of fields? (1998)
Multiple security dbs (1997)
[WebDNA] feature request (2011)
CMS - Formatting Content (2004)
HELP!! problems with e-mail from WebCAT (1998)
Working with framesets (1998)
Linux Beta4 problems with multirecord returns (2000)
WebMerchant 1.6 and SHTML (1997)