Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

Webapp does not support foreign characters

Thread view: 
zakasbanda@gmail.com - 26 Mar 2008 20:29 GMT
Hi All

I need your help.

My web application does not support foreign language characters right
now. If I type in some chinease charanters in TITLE and save, it comes
back with garbage. While my database is UTF-8, the rest of the
application is not. Its a typical "JST, Servlet, JSTL, Java" app.
Could you guys please can help me what all things I will need to
change in order to accomplish this? The application just needs to
accept foreign characters and display them back correct.

Will appreciate your help.
-Sandeep
Roedy Green - 26 Mar 2008 20:43 GMT
On Wed, 26 Mar 2008 12:29:36 -0700 (PDT), "zakasbanda@gmail.com"
<zakasbanda@gmail.com> wrote, quoted or indirectly quoted someone who
said :

>My web application does not support foreign language characters right
>now. If I type in some chinease charanters in TITLE and save, it comes
>back with garbage. While my database is UTF-8, the rest of the
>application is not. Its a typical "JST, Servlet, JSTL, Java" app.

Do a view source.

you should see

<html>
<head>
...
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

make sure the charset is one that will support the chars you need, and
that they are correctly encoded.  You can use my applet called the
encoding recogniser to check.

See http://mindprod.com/jgloss/encoding.html
Signature


Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Hugo - 27 Mar 2008 05:32 GMT
On Mar 26, 12:29 pm, "zakasba...@gmail.com" <zakasba...@gmail.com>
wrote:
> Hi All
>
[quoted text clipped - 10 lines]
> Will appreciate your help.
> -Sandeep

Are you using any frameworks like Struts? The charset is also defined
in the struts JAR.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.