There is an open AR to review and fix URL encoding.
For now we suggest to use URLEncoder to encode path strings instead of internal URL encoding.
Tamara Kogan
Smalltalk Development
Cincom Systems
From: [hidden email] [mailto:[hidden email]] On Behalf Of Terry Raymond
Sent: Friday, January 04, 2013 1:32 PM
To: VWNC
Subject: [vwnc] URL encoding error
I have a TwoByte string containing Chinese characters and when I use them in
a URL it seems that they don’t get properly encoded.
Example:
url := Net.HttpURL
host: 'foo.com'
pathString: (URLEncoder decode: 'http%3A%2F%2Ffoo%2Ecom%2Ffiles%2F%E6%B5%8B%E8%AF%95%2Etxt%3Fkey%3DWeb').
Sending pathString to url gives '/http://foo.com/files/%6D4B%8BD5.txt?key=Web'
The problem is that I would either expect to see the Chinese characters or
%E6%B5%8B%E8%AF%95%2Etxt and not %6D4B%8BD5.txt
Is this a bug or am I missing something?
Terry
===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI 02878
(401) 624-4517 [hidden email]
===========================================================
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc