I18N : Why '?' shown in browser when I get greeting from Messages_th ?

Why <fmt:message key="greeting" /> show '???' instead of '&#3626;&#3623;&#3633;&#3626;&#3604;&#3637;' while Thai font at '&#3652;&#3607;&#3618;Thai' and date are shown properly?
I tried to encode Messages_th files in Eclipse using UTF-8, ISO8859-1(default), MS-874 but it still not work.
Could anyone suggest what I should do?
Thank you in advance
A
Messages_th.properties
greeting=&#3626;&#3623;&#3633;&#3626;&#3604;&#3637;
locale-choice.jsp
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%-- Interpret user's locale choice --%>
<c:if test="${param['locale'] != null}">
<fmt:setLocale value="${param['locale']}" scope="session" />
</c:if>
<%-- Offer locale choice to user --%>
&#3652;&#3607;&#3618;Thai -
USA -
Deutschland -
&#26085;&#26412;
<fmt:setBundle basename="Errors" var="errorBundle" />
<fmt:bundle basename="Messages">
<%-- Localization context established by <fmt:bundle> tag --%>
<fmt:message key="greeting" />
<p>
<%-- Localization context established by <fmt:setBundle> tag --%>
<fmt:message key="emptyField" bundle="${errorBundle}" />
</fmt:bundle>
<jsp:useBean id="now" class="java.util.Date" />
<fmt:formatDate value="${now}" timeStyle="long" dateStyle="long" />
<p>
<fmt:bundle basename="Messages">
<fmt:formatDate value="${now}" timeStyle="long" dateStyle="long" />
</fmt:bundle>

1) In the properties file modies the key and add some prefix to identify the type of message. it may be anything .for example
welcome.greeting=&#3626;&#3623;&#3633;&#3626;&#3604;&#3637;
Note: a dot operator between welcome and greeting as per the rules.
2) In the jsp page the corresponding bundle to be defined and basename attribute should be the name of the properties file, so all the key are accessed using the variable msg.
<fmt:setBundle basename="Messages_th" var="msg" />
<fmt:message key="welcome.greeting" bundle="${msg}" />
-cheers
bala

Similar Messages

  • Why can't I send or get email from an AOL account!

    Good Evening,
     I should say if u could try to keep this simple as I am by no means a computer wiz!. Having said that I have a Verizon account & friend's of mine have AOL but for some reason we can not send email to each other as it keeps coming back.
     My question is why is this? I love Verizon but have never had this with any of the other providers I had. Is there something I need to turn off? & if so what & how?. I'm really lost as to why I can't send nor get email from AOL. If anyone could explain it but in a way I can understand it this would be great!.
     Thank you for your time!
       Will, 

    my70chevelless wrote:
    Good Evening,
     I should say if u could try to keep this simple as I am by no means a computer wiz!. Having said that I have a Verizon account & friend's of mine have AOL but for some reason we can not send email to each other as it keeps coming back.
     My question is why is this? I love Verizon but have never had this with any of the other providers I had. Is there something I need to turn off? & if so what & how?. I'm really lost as to why I can't send nor get email from AOL. If anyone could explain it but in a way I can understand it this would be great!.
     Thank you for your time!
       Will, 
    What message are you getting when it comes back? Having that info would help isolate the problem.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • When I get messages from Barnes and Noble, the text is blank. If I hit reply or forward, I can then see the content. This only happens with Barnes and Noble. Any suggestions on how to view the content?

    When I get messages from Barnes and Noble, the text is blank. If I hit reply or forward, I can then see the content. This only happens with Barnes and Noble. Any suggestions on how to view the content?

    I'm sorry, but your sister, unless she had already turned on the "Find my iPhone" feature and the person who took the phone has not disabled it, is out of luck. She should report the theft to local police authorities, including the serial number of her iPhone. While her experience is unfortunate, there are good reasons why Apple cannot do anything else about it.
    I hope she gets her phone back.
    Best of luck.

  • How come my music will not download to my phone when i get music from a different source other than itunes?

    I am having trouble transfering music on to my phone when i get music from another source like amazon mp3. Anyone know why that is?

    You don't dial *228 on a 4G LTE phone to reprogram it or update the PRLs ... that's handled by the SIM card. 
    You might try a new SIM card; they're free at your local Corporate Verizon store or by calling Customer Service.

  • HT201365 Okay, so somebody stole my Ipod, 4th generation, and it don't have IOS 7, it has IOS 6, and apparently I was tracking it  with police officers this morning and when I get home from school (now, 4:26) it appears that it's offline and I can't see t

    Okay, so somebody stole my Ipod, 4th generation, and it don't have IOS 7, it has IOS 6.1.4, and apparently I was tracking it  with police officers this morning and when I get home from school (now, 4:26) it appears that it's offline and I can't see the location no more, so my question is... Can they still find out where is it located?

    Your carrier might be able to locate it if it's on their network and they are ordered to do so by the police or the courts.  It can't be tracked with Find My iPhone if it's offline.

  • Can't shown chinese text when copy & paste data from server to Outlook, Word & notepad, etc.( Office 2013)

    Can't shown chinese text when copy & paste data from server to Outlook, Word & notepad, etc.( Office 2013)

    Hi
    As per the information and details provided by you, when you copy & paste a data from server to Outlook, word, notepad, then you do not receive the Chinese text.
    For Outlook, please follow these steps: -
    Close and reopen Outlook in your western locale (or switch the windows system to your Western locale if you changed that),
    Manually change the message from Western to Chinese encoding, which you can do in all versions up to Outlook 2007.
    If you want to stay in your Chinese locale in Outlook 2007, then:
    After you hit reply, go to the Option tab > More Options.
    In the Encoding drop-down menu, select the Chinese encoding you are working in (Not the encoding used by the person who will receive the message)
    Note:
    To set the Chinese locale in all versions up to 2007 the controls are under.
    Tools > Options. In Outlook 2010 File tab > Options > Advanced > International options.
    Unicode (UTF-8)
    is a good setting for multilingual users.
    Check the
    Auto select 2007)/ Automatically select (2010) encoding box.
    I hope this information will be helpful for you.
    Thanks and regards
    Shweta@G 

  • Question: why is it so complicated to get help from Adobe? i grow tired of this run around.

    why is it so complicated to get help from Adobe? i grow tired of this run around.
    i have been working for 30 minutes trying to get help.
    you have the money. think Apple. make it user-friendly. make it happen.
    disgusted.

    Hi Richard,
    Sorry you're having trouble. What is your question or issue?

  • Why does it flash when you get a call or text

    Why does my phone have a light flashing when I get a text or call

    Also... To take advantage of the Features in iOS 5 See Here
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • Why every time i try to get something from itunes store i can't?

    every time i try to get something from itunes store it ask for password and after i tipe it it sais its imposibile to connect to itunes store,but when i try it on pc it works.And now i can't get anything on my ipod.what should i do?

    Can't connect to the iTunes Store

  • Premier elements 10. Quits when opening "get files from..."

    How do I fix this issue: APE10 open, sets up a new project, but when I try to "get files" from "files an folders" it quits.
    Thanks

    luiscue
    There is a serious known issue with Premiere Elements 10 on a computer that uses a NVIDIA GeForce video card/graphics card. The answer to date has been to roll back
    the driver version to about May 2013. There is an Announcement at the top of this forum about all this, and much more information to be found elsewhere
    ATR Premiere Elements Troubleshooting: PE10: NVIDIA Video Card Driver Roll Back
    I am not sure if an automatic update of the driver version may have taken the driver version from the much older date to current version which is triggering your present situation.
    I am strictly an Elements Windows user so I am not sure if the following NVIDIA GeForce 9400 M driver version would work in your Mac computer environment.
    GeForce 320.49 May 23, 2013. The following is the NVIDIA GeForce 9400 M but listed on Windows
    NVIDIA Driver Downloads - Advanced Search
    The other consideration is the use of Premiere Elements 10 OS10.10.2. I have not seen any reports confirming that Premiere Elements 10 is compatible with OS 10.10.2.
    But then again, you report "It worked well 3 months ago. First time it has done it." Where you using the same operating system then as now?
    You can also factor into all this the usual drill considerations...
    a. Are you working with a pen and tablet device instead of mouse?
    b. Does the problem exist with antivirus and firewall(s) disabled?
    c. Have you deleted the Adobe Premiere Elements Prefs file
    Users/Owner/Libraries/Application Support/Adobe/Premiere Elements/10.0
    d. Is the latest version of QuickTime installed on your computer?
    Please review and consider and then we can discuss this further.
    Thank you for the follow up.
    ATR
    Add On..Since I am strictly an Elements Windows user, please indicate anywhere in the above where the question would not be applicable to Mac.

  • Notification sounds only when I get email from address book contacts

    I am getting constant sound notifications whenever I get email but very few emails really require instant attention. I do not want to hear a sound when I get an email, except when the sender is one of my contacts. What settings do I need to make this happen? Thanks.

    OK, perhaps I see the problem now.
    Outgoing Mail Server: smtp.gmail.com
    http://email.about.com/od/macosxmailtips/qt/et_gmailosxmail.htm
    http://islandinthenet.com/2009/05/08/how-to-setup-leopard-mailapp-to-use-gmail-2 /

  • Firefox crashes once daily, and I find it when I get home from work. Every day.

    As the title says, Firefox crashes exactly once per day. I always find it when I come home from work, which can be anywhere from 8 to 10 PM. It is every single day, not just occasional. More specifically, the Firefox window is missing and all that remains is the generic "Visual C++ Runtime Library" crash box.
    My system is a fairly new machine. I just built it earlier this year.
    CPU: AMD Phenom II X4 955 black edition (quad core overclocked from 3.2 to 4.1 GHz)
    Motherboard: Asus M4A785-M
    RAM: 3 GB DDR2
    Video: Zotac GeForce 9800 GT
    OS: Windows 7 Ultimate (dual boot with Debian Lenny, but the crash is just in Windows)
    I know the first thing that stands out there is that overclock, but it's unrelated. I suspected it causing an issue at first, so I ran it at stock specs for 3 days. It still crashed Firefox daily. I believe the system itself is quite stable, I never have problems with other software. My FF version is up to date, although it's been doing this for the past 3 or 4 releases. The only add-ons I have installed are DownloadHelper and Flash Player, but it still crashes if I disable them.
    This one's got me kind of stumped. Does anybody have any clue what could be triggering this? It doesn't matter what tabs I have open either, in case anybody was wondering. One day, just to test that I closed Firefox before I left in the morning, then opened it back up with only one tab: google.com ....... still crashed by the time I got back home.

    It's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and themes and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.
    If the problem does not disappear when all add-ons are disabled, please tell me, so we can work from there. Please have no fear of following my instructions to the line, as all can be easily undone.

  • Why is it that when i get a new computer i can only re-download previous songs not videos? Eg. Top Gear

    Please help me!

    Apple has various license arrangements with its media vendors. If you can't redownload a specific song or video, it could be because Apple isn't allowed to let you download it more than once; or because Apple no longer carries that specific item in its store.
    This is why it remains important to back up all your media downloads, even with the advent of redownloading from he iTunes Store and the coming features in iCloud and iTunes in the Cloud.

  • Why is it that when i trash files from my system drive it asks for my permission but doesn't show up in the trash bin?

    Hey guys, need help.
    I've been trying to figure out why everytime i delete files from my system drive, it doesnt show up in my trash bin.
    Has anyone encountered the same issue?
    Would appreciate any help guys.
    Thanks.

    1. Triple-click the line below to select it:
    ~/.Trash
    2. Right-click or control-click the highlighted line and select
    Services ▹ Show Info
    from the contextual menu.* An Info dialog should open.
    3. The dialog should show "You can read and write" in the Sharing & Permissions section. If that's not what it shows, click the padlock icon in the lower right corner of the window and enter your password when prompted. Use the plus- and minus-sign buttons to give yourself Read & Write access and "everyone" No Access. Delete any other entries in the access list.
    4. In the General section, uncheck the box marked Locked if it's checked.
    5. From the action menu (gear icon) at the bottom of the dialog, select Apply to enclosed items and confirm.
    6. Close the Info window and test.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • If i have an app in FF Market how can i save when user get achivments from my app...

    so, i made an app on FF market called R.C.P. (rock paper scissors) but i want if player won 5 times, 50 times, 500 times etc, to get an achivment BUT when he run again the app he can see his achivments.. if he restart the application the achivments will dissapeard....

    hello, use a technology like localstorage to save the achievements and/or other settings: https://developer.mozilla.org/en-US/docs/Web/Guide/DOM/Storage
    some general ressources for webapp developers:
    <br>https://developer.mozilla.org/en-US/docs/Web/Apps
    <br>https://marketplace.firefox.com/developers/docs/game_apps

Maybe you are looking for