[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:
Help! WebCat2 bug (1997)
WebCat2b12--[searchstring] bug (1997)
[format xs] freeze (1997)
Problems with v4.01 email (2000)
Security Tip (1996)
Databases (2000)
View Source from cache (1997)
Summary search -- speed (1997)
More than one db with the same namn (was: WC2f3) (1997)
PIXO with cometsite ... and/or other plugins (1998)
XML Syntax, Cookies and Variables.... (2004)
Triggers Gone Wild! (2006)
[WebDNA] encoding with webdna/JS, in context of various file encodings/charsets (2010)
[WriteFile] problems (1997)
Separate SSL Server (1997)
catagories (1997)
WebCat2b15MacPlugin - showing [math] (1997)
unusual search problem (1998)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
[LOOKUP] (1997)