[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 = 105704
interpreted = N
texte = Hi WSC, Chris, et al :-)I am mostly new at playing with characters out of the range of things =20=we see on our keyboard.. but in light of needing to go back and forth =20=between JS and Webdna sometimes.. like when making ajax calls to pages =20=that need to pass form data via JS (and so be escaped via JS).. and =20then write that data to disk *via webdna*...it would sure be nice to have a webdna version of javascript's:escape(str)unescape(str)To see what I mean, look at this example:If we take the British pound symbol:=A3(option-3 on a mac)If we have the file's encoding set to UTF-8, then that char, [url]'ed =20=becomes:%C2%A3but in JS, and here:http://www.w3schools.com/tags/ref_urlencode.aspit becomes:%A3If we change the file's encoding to Mac OS Roman, then webdna does =20[url] the british pound symbol into:%A3but then the JS (FF3/mac) turns the british pound symbol into:%uFFFD..so again we do not have consistency between the 2 languages.Furthermore, whatever the file's encoding, webdna's [unUrl] only =20produces the british pound symbol when wrapped around:%C2%A3(I.e. there does not seem to be any way to get webdna's [unUrl] to =20change:%A3into the british pound symbol.As I said I am rather newbie when working with projects that =20definitely need to be using UTF-8.. but my understanding is that that =20=is the current standard. In light of this.. does it seem reasonable =20to request a couple new webdna contexts that encode/decode just like =20javascript's escape/unescape? Or put another way, can we have a =20couple contexts that turn all characters into what is listed herehttp://www.w3schools.com/tags/ref_urlencode.aspwhen file is UTF-8.Or someone please explain to me what I need to understand more deeply =20=before I make (uneducated?) requests like the above.Thanks!------------Govindagovinda.webdnatalk@gmail.com
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)
|
Hi WSC, Chris, et al :-)I am mostly new at playing with characters out of the range of things =20=we see on our keyboard.. but in light of needing to go back and forth =20=between JS and Webdna sometimes.. like when making ajax calls to pages =20=that need to pass form data via JS (and so be escaped via JS).. and =20then write that data to disk *via webdna*...it would sure be nice to have a webdna version of javascript's:escape(str)unescape(str)To see what I mean, look at this example:If we take the British pound symbol:=A3(option-3 on a mac)If we have the file's encoding set to UTF-8, then that char,
[url]'ed =20=becomes:%C2%A3but in JS, and here:http://www.w3schools.com/tags/ref_urlencode.aspit becomes:%A3If we change the file's encoding to Mac OS Roman, then webdna does =20
[url] the british pound symbol into:%A3but then the JS (FF3/mac) turns the british pound symbol into:%uFFFD..so again we do not have consistency between the 2 languages.Furthermore, whatever the file's encoding, webdna's
[unurl] only =20produces the british pound symbol when wrapped around:%C2%A3(I.e. there does not seem to be any way to get webdna's
[unurl] to =20change:%A3into the british pound symbol.As I said I am rather newbie when working with projects that =20definitely need to be using UTF-8.. but my understanding is that that =20=is the current standard. In light of this.. does it seem reasonable =20to request a couple new webdna contexts that encode/decode just like =20javascript's escape/unescape? Or put another way, can we have a =20couple contexts that turn all characters into what is listed herehttp://www.w3schools.com/tags/ref_urlencode.aspwhen file is UTF-8.Or someone please explain to me what I need to understand more deeply =20=before I make (uneducated?) requests like the above.Thanks!------------Govindagovinda.webdnatalk@gmail.com
Govinda
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:
Mac: [ListFiles] bug alert (1997)
Where is Orders.db appended? (2000)
Non WebDNA forms and timed popups... (2002)
[IpAddress] Tag (1997)
Sample Tearoom Search Error (1997)
syntax question, not in online refernce (1997)
Huge databases and RAM (1998)
Formvariable won't update (1999)
SERIAL NUMBER PROBLEM *AGAIN*!!! (1998)
Queertrons? (1997)
append=T problem (1998)
Uh...can someone help me out with the b10? (1997)
Running 2 two WebCatalog.acgi's (1996)
Press Release hit the NewsWire!!! (1997)
Great product and great job ! (1997)
Resume Catalog ? (1997)
ACGI processing for .html (1997)
Emailer choke (1997)
[OT] HTML Table Cell Problem (2003)
Quiestion (1997)