[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:
CSS in HTML emails? (2003)
Serial Number Question (1997)
Searchable WebCat (etc.) Docs ? (1997)
(2000)
videos.. yak..yak (1998)
[WebDNA] WebDNA Roll Call (2013)
trouble updating records in database (1998)
Help! (2000)
Web Catalog 2 demo (1997)
send mail problem? (1997)
WebCat & WebTen (1997)
serial number generation (1997)
WebCat2 - Getting to the browser's username/password data (1997)
WebCatalog on Linux/MacOSX/etc (2000)
Emailer (1998)
[shownext max=?] armed (1997)
So, does anyone have developer editon running on Win XP (2006)
ANother SHOWIF problem (1997)
japanese characters (1997)
RE: too many nested [xxx] (1997)