Computer Forum  

Go Back   Computer Forum > Computer Forums > Programming Forum > HTML Forum

HTML Forum HTML Forum. HTML Programming questions and answers here.


URL encoding japanese characters

HTML Forum

HTML Forum. HTML Programming questions and answers here.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-28-2006, 04:36 AM
sunilp
Guest
 
Posts: n/a
sunilp RSS Feed
URL encoding japanese characters

Hi all,

I have a problem related to frame src URL and japanese characters.
My application contains a Frameset/frames and we set frames's src based
on numerous conditions.

Sometimes this URL contains a few request parameters.Currently i m
testing for japanese characters in request parameters.

I have set the character-set of all web pages as "UTF-8".(Using
content-type meta tag).

Also i have made changes in filter(servlet filter) of my application to
set the set the character encoding to "UTF-8". But still i get garbled
data at server side.

If the japanese character data is submitted through forms then i get
correct data at server side, but when i set the src of frame then i get
corrupt data at server side.

Are there any other setting to be made?Or is there any other way to
encode this data?
I have tried using escape and encodeURIComponent.Both didnt work.

(Please note: I m using IE6.Application is j2ee application deployed on
JBOSS).
Thanks in advance.
~Sunil

Reply With Quote
  #2 (permalink)  
Old 11-28-2006, 06:39 AM
Jukka K. Korpela
Guest
 
Posts: n/a
Jukka K. Korpela RSS Feed
URL encoding japanese characters

Scripsit sunilp:


Stop using frames, to start with.


Probably this problem has nothing to do with frames. This is one reason for
stopping using frames: there is one source of problems less, so it is easier
to identify where the problem is.


You should use HTTP headers for setting the encoding ("charset"). In the
absence of any URL, we cannot know whether you in fact have HTTP headers
that override the meta hacks (tags).

But irrespectively of such issues, the URL _should_ be % encoded after
representing it in UTF-8, by the current protocols. This is defined handling
of URLs, independently of the internal encoding of documents. On the other
hand, browsers are known to fail to comply with this relatively new
approach.


That's understandable, because form submission may work differently from URL
handling in browsers. So why don't you use forms?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Reply With Quote
  #3 (permalink)  
Old 11-28-2006, 11:29 AM
Neredbojias
Guest
 
Posts: n/a
Neredbojias RSS Feed
URL encoding japanese characters

To further the education of mankind, "sunilp" <sunil.parte@gmail.com>
vouchsafed:


Besides the individual (src) pages, is your frames page correctly encoded,
and does it have an appropriate doctype?

--
Neredbojias
Infinity has its limits.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
tiny illegal very young japanese virgin sexsex underage bbs japanese preteen illegal very young japanese virgin pedo lolisnaked very young japanese little virgin pics1 1234567890@1234567890.com PHP Forum 0 05-13-2008 01:58 AM
Inserting Japanese characters into UTF-8 MySQL database via php marcin@netsign.pl PHP Forum 0 07-31-2006 08:02 PM
How to convert HTML special characters to the real characters with a Java script Stefan Mueller HTML Forum 3 07-23-2006 10:09 PM
Japanese encoding Ben Bullock HTML Forum 1 06-24-2006 07:35 AM
can I add japanese characters to meta keywords? Steve HTML Forum 16 12-10-2003 06:09 AM


All times are GMT. The time now is 11:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93