Internationization

Hi,
I am facing issue while displaying Japanese characters in the Text Box on an HTML/JSP page. When I take input from the user in the Text box , it shows proper japanese characters in the text box and also on the labels. But when the same is saved in the oracle database and retrieved next time and displayed in the textbox it shows the ASCII equivalent of the character . But the same appears fine when shown as the label.
Character I see in text box is amp#12486;amp#12461; amp#12473; amp#12488; whereas on labels I see actual japenese characters equivalent of these acsii values.
(Please read amp as &)
I have tried
<META http-equiv=Content-Type content="text/html; charset=shift_jis">
<%@ page contentType="text/html;charset=SHIFT_JIS" %>
But with no success . Any clues where the problem is.

Do you have some mechanism that escapes your strings prior to display on the HTML page?
How are you actually inserting the strings containing Japanese characters in the text box? Do you use a taglib that inserts the HTML for the INPUT field or do you simply do something like: <input type="text" value="<%=myValue%>"> where "myValue" is a string? A code snippet might help.
If you were to print the content of the string that ultimately gets inserted in the value of the input field using System.out.println(), what would the result be? A bunch of ????? or the sequence of characters "amp#12486;amp#12461; amp#12473; amp#12488;"
T

Similar Messages

  • Java IDE Internationization Tools

    Is there any Java IDE(s) out there that have built in tools to support internationalization?

    I'm using 2.0.1. It's not a plugin - look at \Source\Externalize Strings... menu.
    Regarding Websphere - I can only imagine that it works as well or better than base Eclipse - but I'm not using WS right now, so you'll want to check for yourself.
    Grant

  • Oracle Strategy for the UIX & BC4J in the new JDeveloper version

    What is Oracle Strategy for the UIX & BC4J in the new JDeveloper version:
    - Like DataBinding
    - BC4J Integration
    - UIX controller
    - Internationalization
    - Supporting for Palm,phone and pager.

    Hi,
    Are these questions all BC4J specific?
    General databinding info is discussed here:
    What's the developement direction of UIX?
    For BC4J/UIX integration, in 9.0.5 we will continue to support our existing api's, but you can also use uix as the view and bc4j as the model in adf, which is described here:
    http://otn.oracle.com/products/jdev/htdocs/905/sod_otn.html#adf
    Aside from bug fixes, I don't think there are major changes in the controller/internationization. Did you have specific questions about the controller and internationalization?
    We are planning to support Palm web browser 2.0, but due to the timing of the release of a platform that supports it and our own schedules, I don't think it will be officially supported in the 9.0.5 release. We won't have phone or pager support in 9.0.5.

  • Sling:message customization per project using i18n

    Hi all,
    I saw this post on the sling message boards, which is the same question as mine, but I didn't see a resolution:
    http://apache-sling.73963.n3.nabble.com/Overriding-of-sling-messages-in-sling-i18n-td40206 15.html
    In our scenario, this is more about site localization than internationization, in that we may re-use components in multiple sites, but want to be able to customize header text using i18n.
    For example, the default component, and the jsp for it, may live in:
    /apps/defaultsite/components/mycomponent
    under that component I have:
    /en/
         key1 (sling:key="Lorem", sling:message="ipsum")
    For a specific site that will be using that component, I want to override key 1 to use something different for the message, I create a new component at:
    /apps/customsite/components/mycomponent  and have it's sling:resourceSuperType reference the component listed above (/apps/defaultsite/components/mycomponent)
    I then create my sling message under my new component:
    /en/
         key1 (sling:key="Lorem", sling:message="customsite")
    The behavior I see (which the other post also mentions) is that whatever translation was saved last is what gets rendered onto the page, the logic for i18n doesn't look like it can be set at multiple places and then have the sling:resourceType and resourceSuperType resolution be used to figure out which value to use.
    Is there another approach to use so I can override sling messages at the component level when a component inherits from another component that already was using the same sling:message?
    Thanks!

    Thanks for the suggestion, that sounds exactly what I need to use, but I am not seeing the expected result.
    Do you see anything wrong with the node structure listed below?
    baseproject
    components
         mycomponent
              mycomponent.jsp - uses <cq:setContentBundle /> in code along with <fmt:message key="mykey"/> to get value
              i18n (sling:folder)
                   en (sling:folder)
                        *jcr:language=en
                        *jcr:mixinTypes="mix:language"
                        mykey (sling:MessageEntry)
                             *sling:key="mykey"
                             *sling:message="base message"
    Extendedproject
    components
         mycomponent
              *sling:resourceSuperType=baseproject/components/mycomponent
              i18n (sling:folder)
                   en (sling:folder)
                        *jcr:language=en
                        *jcr:mixinTypes="mix:language"
                        mykey (sling:MessageEntry)
                             *sling:key="mykey"
                             *sling:message="extended message"
    I place "mycomponent" from the "extendedproject" onto a page.  That component has a supertype referencing the component in the baseproject, where the jsp logic lives.
    I expect to see the "extended message" appear, since cq:setContentBundle should tell the page to use the i18n message assigned to this component itself from "extendedproject".
    However, what I see is whichever sling message was saved last is the one that displayed.  I think what you listed above for " (so a string in /apps overrides one in /libs, but multiple strings with the same key in /apps have an undefined winner)" is still being applied, and the cq:setContentBundle doesn't seem to find the message tied to the component itself in the context of the app it lives within.
    Thanks!

Maybe you are looking for

  • Can I restore a time machine osx lion backup using snow leopard install DVD?

    Hi. I've been using osx lion but my hard drive died. Fortunately I have been making time machine backups.  Since I downloaded lion from the app store I only have the snow leopard install disks.  I know there is an option to restore from a time machin

  • MATCH function support

    Hi I am having problems with the match function Basically I am using it to find the first and last position of a value in a range. =MATCH(B1,D5:D30,0) works fine to return the first value, but =MATCH(B1,D5:D30,1) to find the last value only works in

  • TS2446 Disabled for forgetting security questions answers

    I cannot remember my answer for the security questions and now I cannot do anything.  How do I get past this?

  • EPUB 3 - block of text overlapping the page

    Hi. I'm trying to complete an Epub (school book). The challenge is, for exercises, to have the answer ready to be displayed when you hit a button (or the question iself). I could do it, using java and the 'display:none' / 'display:inline' toggle. BUT

  • I have just got a intel imac and need a router to get on the net......

    Obviously I want cheap! and its important that it will work too! So please let me know if you have any suggestions that fit the critera...cheap AND will work with intel imac and TISCALI ( the intel imac wont work with the speedtouch 330 usb they prov