URL that contains non-ASCII characters
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Tuesday, July 17, 2001 09:38 AM

My applet is supposed to load a file from the server it comes from. This is straightforward, the problem is that file can have non-ASCII (Japanese for instance) characeters. It works fine on IE but not on Netscape. According, to the w3 RFC regarding URI in general, the latter is not supposed to include non-ASCII characters.

Does anyone know a workaround for this problem?

Re: URL that contains non-ASCII characters

Posted By:   Thierry_Sourbier  
Posted On:   Saturday, August 4, 2001 03:40 AM

To reference non-ASCII characters in a URI you must:

(1) Encode them with UTF-8

(2) Escape each byte of the UTF-8 sequence in the form %HH where HH is the exadecimal value.

for example www.jguru.com, assume that "jguru" are to be treated like some japanese characters, becomes www.%6A%67%75%72%75.com (try it it works :).

Thierry Sourbier

About | Sitemap | Contact