Javascript alert display weird characters when Locale is CN !

Hi guys,
I got a javascript to alert user like below:
<f:view locale="#{catalogBean.currentLocale}">
<html><head>...
<script type="text/javascript">
<!--
alert('<h:outputText value="#{reg_msg['invalid_password']}"/>');
// -->
</script>
</head>
</html>
</f:view>
where the current Locale is CN. The alert message display like
sljbfjsbfewg587456435%%^^&^&5143cfcnfejb
please help, Thanks !
regards,
kmthien

Hi kmthien,
You can try use local-based resource properties and set the application's locale-config config element and correct your jsf code like
<td><h:outputText value="#{msgs.yourmsgkey}"/></td>BTW,I am a chinese too, nice to meet you here. My QQ is 9818376 and MSN is [email protected]
Best wishes.

Similar Messages

  • Weird characters when generating WebHelp from a word document

    Hello,
    First of all, I'm using RoboHelp 6.
    I've seen many posts about this subject, but none with the same version.
    I've generated a WebHelp from a word document, that contains accentuated characters (french).
    When viewing that help from my local machine, it's ok.
    When viewing that help from a web server, it displays weird characters.
    I'd like to change the encoding to UTF8, in my web help.
    I've seen (if I understood well) that we could change the output charset when generating a web help, but only from the RoboHelp 7 version.
    How can I do such a thing on  RoboHelp 6 version ?
    I've tried to add <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> in many htm files, without success.
    Any ideas ?
    Thanks a lot
    Regards

    Hello
    Thank you for answering me.
    There is no way to do it using RoboHelp ?
    Thkx

  • Firefox is displaying unreadable characters when visiting some websites like digg. The sites work fine in all other browsers. I've tried all encoding options in firefox.

    Firefox is displaying unreadable characters when visiting some websites like digg. The sites work fine in all other browsers. I've tried all encoding options in firefox.

    This issue can be caused by an old bitmap version of the Helvetica or Geneva font or (bitmap) fonts that Firefox can't display in that size.
    Firefox can't display some old bitmap fonts in a larger size and displays gibberish instead.
    You can test that by zooming out (View > Zoom > Zoom Out, Ctrl -) to make the text smaller.
    Uninstall (remove) all variants of that not working font to make Firefox use another font or see if you can find a True type version that doesn't show the problem.
    See also [/tiki-view_forum_thread.php?forumId=1&comments_parentId=566006]

  • Dialog title shows weird characters when losing focus

    Hi all,
    a localized application with two configured languages has problems with the title of a modal dialog. Opening the dialog works fine, the text is displayed properly. After klicking into the main screen (so the modal dialog loses the focus), some weird characters are displayed in the title (looks chinese). The buttons that are localized with the same resourcebundle stay normal. Does anybody know this problem?
    Regards, Robert4

    More information:
    This problem does not occur at all workstations. Some do not have this problem at all. But it's all on Windows XP SP 1.
    Maybe a threading problem? I cannot imagine.........
    regards, 'Robert4

  • Cursor displays weird characters

    Turned on my 2008 Mac Pro the other day to have these weird characters following my cursor around:
    Mac Pro 3,1 Quad-Core 2.8GHz; 10 GB RAM; ATI Radeon HD 2600.
    I have 3 1TB internal drives, 1=Mountain Lion 10.8.2, 2=Snow Leopard 10.6.8, 3=Windows7
    The problem first occurred under Snow Leopard. I rebooted under Mountain Lion and had the same thing.
    No cursor problem when booting up under Windows7.
    I reinstalled the driver for my Microsoft Intellimouse Explorer 2.0 but that changed nothing.
    The Mountain Lion drive was originally a clone of the Snow Leopard drive (used as backup) before upgrading to ML... so thinking it may have been something duplicated from my SL drive (main drive) I wiped the Mountain Lion drive, installed ML (clean - and none of my apps or files) and the cursor problem was gone. Re-booted in SL and problem was there... re-booted in clean ML and problem back.
    Also still have problem if booting up SL in Safe Mode.
    Any ideas? I hate the thought of wiping drives, installing clean, and loading apps and files manually...
    Thanks for any help.
    -Dave

    Sadly no.
    I haven't taken my Mac in to the Apple Store yet either. Since November the weird text has gone from the one line, to two lines, back to one... and currently at two.
    My hope is graphics card (I've also seen comments elsewhere suggesting logic board - yuk). But only a Genius will know for certain.
    -Dave

  • Firefox tabs display weird characters

    Recently getting weird characters on my tabs.
    p.s how do I add pictures on here to show my problem?

    here is my picture

  • Reminders showing weird characters when typing

    When I type in a new reminder on icloud.com (I am using WIndows 7) all of the sudden I am seeing gibberish characters.  They become fine when I hit enter or details or when reading something typed.. But as I am typing, they are just weird chaarcters.,. Anyone else have this issue? How can I fix?

    I'll tell you whatever you want to hear but wouldn't you prefer hearing the truth?
    Personally, I'd be more concerned about someone seeing what keys my finger depressed while entering the PW. The text on the keys is much larger and much easier to see than the text on the entry area. Bottom line is that I'd never enter any PW under any circumstances while someone else is watching.

  • I get weird characters when I copy/paste from my pdf book

    Everyone in my office has worked on a PDF book on their PCs. I got my hands on it and did an extensive overhaul on it, better details, graphics and whatnot.
    I finally sent it out and they love the way it looks, but they cannot seem to copy correctly from it. It either gives weird off characters and numbers when one pastes or it gives off mis alinged parts of words.
    I have tried taking all of the word documents and converting those on a PC and whatnot. I really dont know what to do anymore. I used preview on mac osx to build it with individual pages and it gave me the horrible paste characters. I put it together on windows, i have no idea what is wrong. I am thinking its my word 2008, but I exported a document with word 2000 (which the original books were made in) and its still doing it. I need some help please.

    Yes actually, I had just started to come under that same conclusion. But its extremely weird, because I cannot seem to copy and paste some files within OSX itself. Im trying to test out a few things on my work PC, one file gave nothing but ____ __ __ underscores when you pasted, and I converted it from Calibri to Arial on my PC and now it copies correctly (minus some alignment issues)
    Im just really worried, since its been hit and misses right now. I just need it to work correctly

  • Firefox display odd characters when I click an mp4 link

    Up until about a month ago, I could click a link to an mp4 file and it would stream in my browser perfectly - now, I get square characters and question marks - just a bunch of giberish. These videos play perfectly in Safari, Chrome and IE.
    I'm on FF 31.0 and the browser reports that Firefox is up to date. What changed with the recent updates?

    This happens if the server sends the file as text/html or as text/plain.
    In such a case Firefox will try to render the page instead of opening it in a media player.
    This can also happen if you ever got the "Open with" dialog when you clicked such a link and have chosen to open file in Firefox.
    You should never do this to avoid such an issue and you will have to remove this action in Firefox > Preferences > Applications
    *http://kb.mozillazine.org/File_types_and_download_actions
    If that wasn't possible then rename (or delete) the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions

  • Displaying weird characters

    I am having display problems with my itunes software. Way back, I was reorganizing my fonts collection, and I may have accidently deleted a default font. Now whenever I open iTunes, everything is displayed in some type of Japanese font, and it doesnt happen just for iTunes, there are a few programs where the fonts are displayed differfently. I tried checking the Help, but no use.
    Anyone know how to fix this, I will gladly appreciate. I really want this problem solved.
    I provided a screenshot to better seee my problem.
    http://i1.tinypic.com/1zzlzip.jpg
    Thank You in advance!
    iBook G4   Mac OS X (10.4.4)   http://i1.tinypic.com/1zzlzip.jpg

    Have a look at Kurt Lang's article, Font management in Mac OS X Tiger and Panther.

  • Why do I see weird characters when I run javac?

    Here is what I received at my window cmd when I do, javac
    C:\java>javac MortgageWindow.java
    &#9579;?&#9573;&#915;?&#9553; MortgageWindow.java &#9577;&#9571;&#9561;&#9500;&#9559;&#8805;&#9557;&#9619;&#9557;&#9567;&#9524;&#9574;&#9573;&#9572;&#9571;?&#9577;&#9618;&#9569;&#9472; API??
    &#9579;?&#9573;&#915;?&#9553; &#9573;?&#9524;&#9574;&#9564;&#915;&#9575;&#937;&#9575;&#9557;&#9576;&#9532;&#9575;???&#9567;&#948;&#9577;&#9571;&#9561;&#9500; -Xlint:deprecation &#9555;&#9578;&#9576;&#9516;&#9618;&#945;&#9573;&#948;??
    It apparently compiled successfully though. I can run below with the correct output:
    C:\java>java MortgageWindow

    You must have installed a non-English language version of the JDK (Japanese?) or have configured javac to print the messages in a different language... but you are running it on a system that does not support that language.

  • My Mac won't read cyrillic in certain files and displays instead weird characters like this: "–í–µ-Ç–µ-Ä –ø-Ä–æ–¥–∏-Ä–∞–µ-Ç –¥–æ –∫–æ-Å-Ç–µ–π." Any ideas why this might be or how I can solve it?

    Yesterday I extracted the subtitles of an MKV file to try and print them. Unfortunately, when I open the .srt file with any text processor, it displays weird characters like the ones included in the title:
    "–û–±—ã–≤–∞—Ç–µ–ª–∏ –ø–µ—á–∞–ª—å–Ω—ã.
    –í–µ—Ç–µ—Ä –ø—Ä–æ–¥–∏—Ä–∞–µ—Ç –¥–æ –∫–æ—Å—Ç–µ–π."
    I thought this had to do with it being an .srt file, but just now I encountered the same problem with an Excel file.
    Any ideas why this might be or suggestions as to how to solve it?
    Thanks in advance,
    Mario

    It looks like an encoding problem.  You should try opening the file in a text editor where you can choose one of the various possible cyrillic encodings (utf-8, koi8-r, iso-8859-5, win-1251, MacCyrillic)

  • How to display utf8 characters in sql developer

    Is there a setting I need to change in sql developer in order to display utf8 characters?
    I am seeing weird characters when displaying chinise/arabic characters in sql developer. I can display the same data just fine in Putty ( I changed the following setting in putty before I was able to display utf8 characters ok: Windows->Translation and selected UTF8) .
    Thanks,
    SK

    *1. OS version and oracle version*
    Windows XP Professional/Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    *2. NLS settings for the database*
    AL32UTF8
    *3. Output from sqlplus showing the UTF8 characters*
    \什么是统码
    ANSI
    \什么是统码
    يونی‌کُد چيست؟.utf8
    *4. Same output from SQLDeveloper*
    \什么是统码     ANSI
    \什么是统码     ÙŠÙˆÙ†ÛŒâ€ŒÚ©ÙØ¯ چيست؟.utf8
    Thanks,
    Salem

  • Weird characters in Ultrabeat

    Sorry if this has been posted elsewhere but I've recently started to get some weird characters when opening an Ultrabeat instrument (see attached screenshots).
    /Users/neilmorgan/Desktop/Screen shot 2010-12-27 at 16.53.59.png
    /Users/neilmorgan/Desktop/Screen shot 2010-12-27 at 16.54.56.png
    They're different each time and they seem not to affect the sound, but does anyone have any ideas of how to rid my system of them?
    Message was edited by: SwiftyM
    Message was edited by: SwiftyM
    Message was edited by: SwiftyM

    For instance, did you mean something like this:
    https://skitch.com/yorick75/rx46f/characters
    I've been getting those kind of 'weird characters' in the Ultrabeat pattern menu as well, but only recently. If that is the same case as yours, yes, it doesn't affect the sound or functionality of anything in Ultrabeat; however, it is annoying and a bit confusing when you want to choose a sample pattern or if you want to create a new one because the whole menu window looks 'jumbled up' with those odd characters. I have no idea what causes the display of these 'weird characters'. I would like to know if there's some way to fix this. Hopefully someone else has come upon this and might read this post too. By the way, in my case, this happens in Logic 8. So I don't know if anyone using Logic 9 has encountered a similar problem.

  • OBIEE 11g: Dashboard not invoking simple javascript alert

    Hi Experts,
    I'm trying to invoke one simple ALERT command with javascript in obiee 11g dashboard. The purpose is when it loads, it should print one ALERT message and also when we change something in the prompt and clicking Apply button.
    Here is code written in a text item (Checked html markup option) after prompts;
    <script language="Javascript">
    alert ("Hello");
    </script>
    The Javascript alert message is showing when the dashboard page loads, but its not coming when we click the Apply button after changing the prompts.
    Can anyone give helpful hint, how to check it and why its not showing up when we press Apply button?
    Any hint or some useful links will b highly appreciated.
    Thanks in advance.

    You just used code and I would say the default event is onload of the page, thats the reason you are able to see alert.
    Since you didnt ask or written code onClick event to show alert, its not showing.
    You need to tell to browser when to prompt alert message instead of onload.
    Hope you are more confuse about 'how to do'
    if yes, mark :)
    give some more info about your actual req. that helps any other gurus to help.
    Edited by: Srini VEERAVALLI on Mar 27, 2013 8:42 AM

Maybe you are looking for

  • Components

    hi! I´m Paulo and i have 2 Dual-Core Intel Xeon 3GHz, and 1 Macbook Pro 2.33GHz Intel Core 2 Duo, at home i have the Last imac with Power PC 5 2.1GHz, i install in all machines the Final Cut Pro Studio, but i have a problem with the components, the q

  • How to find a Region id/name from a JTT jsp page

    Hi, i am on a SR details page , which i think is , ibuSRDetails.jsp in Isupport. How do i find which region it is belongs to ? I wanted to find out the region id /name so that i can customize the region. thansk -mahendra

  • ADF 12g deployment failed

    Hi All, I was trying to deploy an ADF 12c Application which successfully tested in JDeveloper failed in while deploying through Fusion Middleware Control 12c I am getting the below exception while deploying the EAR .. Apr 22, 2015 12:05:57 PM IST> <W

  • Copying Verity Collection

    Since my shared hosting provider has the timeout set so low I can't index my verity collection of pdf files before it times out. So, I'm told I can index it locally, then FTP the index/collection up to my site at the hosting provider. But when I do t

  • Graphs in idd!

    Tables are great in InDesign, were are graphs? Since Ai 6.0 or so there's been no improvement on this subject in Illustrator. So why not include graphs in InDesign? Typography would be easier 'leveled', as well as colours and size.