Issue with displaying international characters returned by Search And Promote.

Hi,
     I am trying to display international characters being returned by Search and Promote. The actual text returned by S&P is televisión, while the one being displayed is televisión
I am usging r.get() to fetch values returned by S&P. The issue is only with data returned by S&P. Local international texts are being properly displayed.
Thanks in advance!

Thanks Sham! Found the fix. I am checking for invalid characters in the byte stream and then applying corresponding encoding.
This method checks for invalid characters.
public static boolean isValidUTF8( byte[] input ) {
    CharsetDecoder cs = Charset.forName("UTF-8").newDecoder();
    try {
        cs.decode(ByteBuffer.wrap(input));
        return true;
    catch(CharacterCodingException e){
        return false;
This statement performs corresponding encoding.
String utf8 = new String(inputString.getBytes(encoded format), Charset.forName("UTF-8"));

Similar Messages

  • Issue with displaying Unicode Characters returned by a webservice

    Hi, We are developing a mobile application which provides multi language selection (Arabic & English). but we are having an issue with displaying returned JSON which has Arabic text. The output we get is as below. Our .net client throws the following
    exception. Appreciate your kind help and thank you in advance.
    [net_WebHeaderInvalidControlChars]
    Arguments:
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.7.60408.0&File=System.Net.dll&Key=net_WebHeaderInvalidControlChars
    Parameter name: name”
    Returned JSON:
    https://72.44.81.184/~shababcapital/wp-json/posts?type=news&lang=ar
    Connection ? Keep-Alive
    Content-Type ? application/json; charset=UTF-8
    Date ? Fri, 27 Feb 2015 03:35:43 GMT
    Keep-Alive ? timeout=1, max=100
    Last-Modified ? Thu, 26 Feb 2015 14:43:55 GMT
    Link ? <http://72.44.81.184/~shababcapital/wp-json/posts/131>; rel="item"; title="387 Ù?اعب Ù?Ù?اعبة ضÙ?Ù? فعاÙ?Ù?ات اÙ?تدرÙ?ب اÙ?Ù?ستÙ?ر Ù?اÙ?تشاف اÙ?Ù?Ù?اÙ?ب اÙ?رÙ?اضÙ?Ø©", <http://72.44.81.184/~shababcapital/wp-json/posts/119>;
    rel="item"; title="387 Ù?اعب Ù?Ù?اعبة ضÙ?Ù? فعاÙ?Ù?ات اÙ?تدرÙ?ب اÙ?Ù?ستÙ?ر Ù?اÙ?تشاف اÙ?Ù?Ù?اÙ?ب اÙ?رÙ?اضÙ?Ø©", <http://72.44.81.184/~shababcapital/wp-json/posts/118>; rel="item";
    title="اÙ?جÙ?در Ù?ؤÙ?د استÙ?رار "اÙ?شباب Ù?اÙ?رÙ?اضة" فÙ? دعÙ? Ù?سÙ?رة اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø©", <http://72.44.81.184/~shababcapital/wp-json/posts/117>; rel="item"; title="اÙ?جÙ?در
    Ù?Ø´Ù?د بدÙ?ر اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø© فÙ? تطبÙ?Ù? رؤÙ?Ø© Ù?اصر بÙ? Ø­Ù?د فÙ? احتضاÙ? اÙ?شباب", <http://72.44.81.184/~shababcapital/wp-json/posts/55>; rel="item"; title="اÙ?جÙ?در: Ù?دفÙ?ا
    تحÙ?Ù?Ù? أفضÙ? فرص استثÙ?ارÙ?Ø© Ù?Ù?Ø£Ù?دÙ?Ø© اÙ?Ù?Ø·Ù?Ù?Ø© Ù?Ù?بارÙ? اÙ?Ù?شرÙ?ع اÙ?جدÙ?د", <http://72.44.81.184/~shababcapital/wp-json/posts/45>; rel="item"; title="اÙ?جÙ?در Ù?Ø´Ù?د بدÙ?ر
    اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø© فÙ? تطبÙ?Ù? رؤÙ?Ø© Ù?اصر بÙ? Ø­Ù?د فÙ? احتضاÙ? اÙ?شباب"
    Server ? Apache
    Transfer-Encoding ? chunked
    X-Content-Type-Options ? nosniff
    X-Pingback ? http://72.44.81.184/~shababcapital/xmlrpc.php
    X-Powered-By ? PHP/5.4.24
    X-WP-Total ? 6
    X-WP-TotalPages ? 1

    I originally downloaded it using IE and viewed the content in Fiddler.  Use this code to get the content:
    string url = "https://72.44.81.184/~shababcapital/wp-json/posts?type=news&lang=ar";
    HttpBaseProtocolFilter MyFilter = new HttpBaseProtocolFilter();
    MyFilter.IgnorableServerCertificateErrors.Add(Windows.Security.Cryptography.Certificates.ChainValidationResult.InvalidName);
    HttpClient request = new HttpClient(MyFilter);
    string response = await request.GetStringAsync(new Uri(url));
    MyContent.Text = response;
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Issue with displaying Greek characters in Oracle 11.1

    Hi,
    We are having issues with display of Non-English language (for ex Greek) text on Pega-PRPC. The text is stored in a reference table in Oracle DB. However there is not need of translation in PRPC as it has the capability of displaying non-english language also.
    I believe that it is a issue with DB settings, although not sure of what is the setting.
    Below is the result after running the query: select * from nls_database_parameters
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CHARACTERSET     AL32UTF8
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    NLS_SORT     BINARY
    NLS_TIME_FORMAT     HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_RDBMS_VERSION     11.1.0.6.0
    Please help.

    869852 wrote:
    Hi,
    We are having issues with display of Non-English language (for ex Greek) text on Pega-PRPC. The text is stored in a reference table in Oracle DB. However there is not need of translation in PRPC as it has the capability of displaying non-english language also.
    I believe that it is a issue with DB settings, although not sure of what is the setting.
    The first question that needs to be answered is whether the problem is a data storage problem or data presentation problem.
    The query below will answer this question.
    SELECT ASCIISTR(greek_column) from greek_table where key_id = <specific_value>;

  • Issue with displaying summary in the Page Bottom

    Hi Friends,
    I have an issue with displaying summary in the page bottom. for this i am using command BOTTOM and ENDBOTTOM in Main Window.
    I designed 2 pages are First and Next, in the first it displays PO Header details and Item details in the Main window and also Item details continuious in the Next Page also.
    If the lines are enough in Bottom then it displays the summary. But if the lines are not enough in bottom then it does not trigger the new page, so that it doesn't displays the Summary in Bottom.
    for ex: Total lines of the page 50 and Bottom required 15 lines. In the next page contains upto 35 lines, it triggers the Bottom.
    But if the lines are more than 35 and below than 50, it does not trigger the new page so that it does not shows the bottom.
    Please help me on the same, this is very urgent.I will give a rewatrd if it is helful.
    Regards,
    Subbarao

    HI,
    Try with printing the bottom data with Protect and ENDPROTECT along with your Bottom and endbottom.
    Eg: Protect
    bottom
    text
    endbottom
    endprotect.
    Regards,
    Venkatesh

  • JS Display international characters

    I've recently posted a script that makes a font catalogue.  One of the comments I got was if it could display international characters Russian for example. Would anyone have any suggestion as to how I might go about this?  I've got a couple of changes I need to make to the script and it would be good to include this request as well.
    Cheers.

    Although your working sample displays three different scripts (Latin; Greek; Cyrillic), it's of No Importance At All. It's the different languages that count.
    So for French and Italian, you would add:
    var myLetters = (localize({
        en: 'ABCDESFGHIJKLMNOPQRTSUVWXYZ.....%^&*()',
        ru: 'ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ......%:?*()',
        el: 'ΑΒΨΔΕΦΓΗΙΞΚΛΜΝΟΠ;ΡΣΤΘΩςΧΥΖ......%^&*()',
        fr:'Une message simple : ça marche!',
        it:'Non ho idea di come dire qualcosa di utile in italiano'
    You appear to think your myLetters variable ought to hold the allowable set of characters per language. Well ... no. Translating something does not (ever, if I'm correct) amount to transposing each character into another.
    Take, for example, the Greek word for Greece. The alternative English name Hellas comes from Ελλάδα, but if you would somehow translate it one character at a time, you get "Ellada".
    You should think of myLetters as a message instead. Suppose your script may display an alert
    alert ("Bad input. You'll have to start all over again!");
    then you can make a list for this message alone:
    var badInputMsg = (localise({
      en:"Bad input. You'll have to start all over again!",
      el:"Λάθος εισροών. Θα πρέπει να ξεκινήσει ξανά από την αρχή!",
      es:"Entrada incorrecta. Vas a tener que empezar todo de nuevo!",
    etc., for every language you care to include, and for every message and text string you add to your script as well.

  • Performance Issue With Displaying Candidate Details for iRecruitment

    We are in EBS R12.1.3 when we trying to display the Candidate Details page in iRecruitment iRecruitment >vacancies>applicants> click on applicant>   the page spins for  a quite whille to show the results and some times we see the 500 errors..
    We are in R12.1.3 and also applied the  Patch.10427777:R12.IRC.B patch.. is there any  tunnign steps for the iRecruitment  page=/oracle/apps/irc/candidateSearch/webui/CmAplSrchPG

    You have already applied the patch mention in note: Performance Issue With Displaying Candidate Details Page in 12.1.3 (Doc ID 1293164.1)
    check this note also Performance Issue when Clicking on Candidate Name (Doc ID 1575164.1)
    thanks

  • Issue with displaying text in BEx

    Hi all,
    We are facing an issue with displaying text in the query output.
    We have a master data carrying charac ' 0MATERIAL'.When i do maintain master data ,I am able to see medium description in the output.
    Now when i drag 0MATERIAL in bex designer and in properties set display to key and text(medium text), it shows me only the key and it shows some wierd text which is in no way related to the medium description ( that was shown under maintain master data)
    can anyone pls tell me why i am not able to see the medium description when executing the query that too when the text is loaded.
    Pls help
    Regards,
    Suchitra

    But what i wouldlike to know is what about the master data which is present in 0MATERIAL now?
    Nothing will happen to your data.
    Its showing there ...dosent that mean its present and activated?
    They are present n in active version.
    If u change any records they will be in M version..by activating the data...u are converting it to A version.
    Regards,
    Ram.

  • I have installed the agent 10 or 15 times and one installation hasfailed, no error appeared during the installation but I am havinginconsistent issues with my ethernet card not working here and there. Werebooted and can log into Novell client but th

    I have installed the agent 10 or 15 times and one installation has failed, no error appeared during the installation but I am having inconsistent issues with my ethernet card not working here and there. We rebooted and can log into Novell client but the login prompt did not appear for ESM client or the icon was not in the systray. Everything seems to work, besides at times (a couple times today) it terminates his ethernet card/connection. I would re-image his computer but he has several applications and it would take several hours, so I am hoping someone has an idea to fix this issue. So I was trying to figure out why he did not get the prompt to login and why it's not in the systray and it appears to not have completed the install? I checked the add/remove programs, its not listed within their, I also checked the registry and found nothing for endpoint within their, but the files are within c:\program files\novell\zenworks endpoint security.
    I have also tried uninstalling it but that fails due to it "not being installed", and it will not reinstall over itself either.
    I did notice that stuninstdrv.exe is running in task manager. Any help would be great...
    Windows xp sp3
    ESM 3.5.154
    Thanks,
    Andy

    If you are searching the registry, check for the "Senforce" string. It should be at HKLM\Software\Senforce
    Try running the install program for the ZSC with the following command line:
    setup.exe /V"STUNINSTALL=1"
    If you've specified an uninstall password, try this one instead:
    setup.exe /V"STUNINSTALL=1 STUIP=password"" (please note the double quote at the end)
    Let me know if that helped you.
    Daniel
    >>>
    From: Andy_DeWees<[email protected] du>
    To:novell.support.zenworks.endpoint-security-management
    Date: 2/5/2009 12:52 PM
    Subject: I have installed the agent 10 or 15 times and one installation hasfailed, no error appeared during the installation but I am havinginconsistent issues with my ethernet card not working here and there. Werebooted and can log into Novell client but the login prompt did not appearfor ESM client or the icon was not in the systray. Everything seems towork, besides at times (a couple times today) it terminates his ethernetcard/connection. I would re-image his computer but he has severalapplications and
    I have installed the agent 10 or 15 times and one installation has failed, no error appeared during the installation but I am having inconsistent issues with my ethernet card not working here and there. We rebooted and can log into Novell client but the login prompt did not appear for ESM client or the icon was not in the systray. Everything seems to work, besides at times (a couple times today) it terminates his ethernet card/connection. I would re-image his computer but he has several applications and it would take several hours, so I am hoping someone has an idea to fix this issue. So I was trying to figure out why he did not get the prompt to login and why it's not in the systray and it appears to not have completed the install? I checked the add/remove programs, its not listed within their, I also checked the registry and found nothing for endpoint within their, but the files are within c:\program files\novell\zenworks endpoint security.
    I have also tried uninstalling it but that fails due to it "not being installed", and it will not reinstall over itself either.
    I did notice that stuninstdrv.exe is running in task manager. Any help would be great...
    Windows xp sp3
    ESM 3.5.154
    Thanks,
    Andy

  • I've been using LR with my Nikon D3200 for a year or so. Shooting in RAW/NEF no issues with import etc until I updated LR and now I can't get LR to allow me to select when I try to import. It does show the images but they're grayed out and not able to be

    I've been using LR with my Nikon D3200 for a year or so. Shooting in RAW/NEF no issues with import etc until I updated LR and now I can't get LR to allow me to select when I try to import. It does show the images but they're grayed out and not able to be selected. Any thoughts? TIA

    Greyed imaged in the Import dialog box mean you have already imported the photos into Lightroom, so there is no need and no benefit to importing them a second time.
    Just go to the Library module, search for the desired photos, and resume working on these photos.

  • I'm having a huge issue with itunes locating my missing files..and it's too many for me to locate 1 by 1..It says I'm missing over 3,00 songs and They are all in my music folder..What can I do to fix this issue?

    I'm having a huge issue with itunes locating my missing files..and it's too many for me to locate 1 by 1..It says I'm missing over 3,000 songs and They are all in my music folder..What can I do to fix this issue? I've looked at all the tutorials on youtube and none of it works. I recently got a new computer and I Back-Up all my music and itunes playlist and I import it on my new computer with the new itunes and I go to play a few songs, it says I'm missing them I locate a few but it's still like 3,000 missing and again they are all on the computer and in one folder..Please Help !

    I did that and nothing changed half my songs still have examination marks beside them
    I also just tried dragging my folder of music int he playlist and it duplicated all of my songs? My playlist was at 5k now it's at 10k becuz of 3 duplicates of songs. Is there a way to delete multiple duplicate files?

  • HT4623 i have issue with my iphone5, the phone is open and good network signal, but when some one calling me they cant reach me, like the phone is off

    i have issue with my iphone5, the phone is open and good network signal, but when some one calling me they cant reach me, like the phone is off

    You are as far as you can be with the original iPad; only iPad 2 and greater will update to 7+

  • TS1702 I'm not able to update Smurf's Village. Tried most of the things proposed on the net including restarting the iPad and trying syncing with the computer. Had a similar issue with another application. Had to delete and reinstall it, with all history

    I'm not able to update Smurf's Village. Tried most of the things proposed on the net including restarting the iPad and trying syncing with the computer. Had a similar issue with another application. Had to delete and reinstall it, with all history lost.
    Tried following up with the developer's instruction. Didn't help. Developer suggested contacting Apple if their instruction didn't work. Tried the various methods recommended on the Apple site. Same result.

    Telling is that you tried most of the things on the net doesn't tell us exactly what you did try, so we are all still left to guess .....
    Sign out of your account, restart the iPad and then sign in again.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try to update again
    If that doesnt work - go to Settings>General>Date and Time - set the date ahead by a few months. Try to update again. If you get an error message of any kind - go back and change the date and time to automatic again. Then try again.
    If that doesn't work, restart your router and reboot the iPad.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • When I open a new tab, an unwanted website opens instead of my desired home page. THIS IS ONLY AN ISSUE WITH NEW TABS; (opening the web browser AND clicking on the home button frings me to my desired home page.)

    When I open a new tab, an unwanted website opens instead of my desired home page. THIS IS ONLY AN ISSUE WITH NEW TABS; (opening the web browser AND clicking on the home button frings me to my desired home page.)
    I have attached the url of the unwanted site.

    Use this add-on [https://addons.mozilla.org/en-US/firefox/addon/custom-new-tab/ '''Custom new tab'''].

  • Issue with Keyboard Special Characters in HP Pavilion DV6-3004TU

    I am using a HP Pavilion DV6-3004TU notebook. I just had my Windows 7 Professional installed. When I @ using Shift + 2 it displays " (quotation marks). It is vice-versa as well, ie., when I type " using Shift ' it displays @ symbol. I as well have issue with typing the hash symbol. When I type Shift 3 it displays £ instead of hash symbol. This is a brand new laptop and I am using an external USB keyboard as well for my convenience. This problem is encountered in both keyboards (notebook keyboard and external keyboard) as well. What do I do now? It has become a literal mess with characters making it difficult most of the times. Kindly help
    This question was solved.
    View Solution.

    That looks like keyboard layout issue...Looks like your keyboard is set to UK english...to check that...
    To check that, Click Start, type intl.cpl in the Start Search box, and then press ENTER. On the Keyboards and Language tab, click Change keyboards.
    You should see 2 entries English (united States) and English (United Kingdom). If true, delete English (United Kingdom). That should take care of it...
    Although I am an HP employee, I am speaking for myself and not for HP.
    Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • Displaying International Characters

    Some users have been concerned about the fact that Buzzword
    does not display some international characters - ranging from Greek
    to Russian. This is accentuated by the fact that we have Buzzword
    users in well over 100 countries.
    The problem occurs when users attempt to insert some
    international characters - say, the Greek letter omega - and
    Buzzword instead displays a dot on the screen. Here's what's going
    on, for anyone interested:
    Like virtually all modern software, Buzzword adheres to the
    Unicode standard, where characters are defined with 16 bits,
    resulting in a total of over 65,000 possible characters.
    However, unlike most desktop software, Buzzword must use
    something called "embedded fonts". This means that we can't read
    fonts off a user's computer, but instead we have to download fonts
    from our server.
    This is where our challenge begins. A font family contains
    characters - called "glyphs" when drawn on the screen - for some
    portion of the 65,000 possible characters defined by Unicode. Each
    available character is downloaded as a small program containing
    instructions on how to draw the glyph. The instructions are
    relatively small, but each takes time to download - you can see
    evidence of this in our "loading fonts" progress bar.
    For Buzzword to load relatively quickly, we need to limit the
    number of characters downloaded with each of our seven font
    families. Most people use far fewer than 65,000 characters, so for
    our first phase of deployment, we identified a couple hundred
    characters to download for each font family. Because our initial
    market focus was North America, we chose characters from Latin-1,
    the Western European character set.
    The result: when a user attempts to enter the Greek letter
    omega, Buzzword recognizes the Unicode character but does not have
    the downloaded instructions to display the glyph on the screen. The
    little dot that is displayed instead is an indication that the
    requested glyph has not been downloaded with the font set.. If the
    user were to export the document to be read by a desktop program,
    the glyph would probably be displayed using the computer's fonts.
    Longer term, we'll handle this differently by downloading
    fonts dynamically, based on the document's contents and a user's
    settings. In the meantime, we apologize to everyone who uses
    characters outside the Western European set. We will work to get
    you a solution as soon as we possibly can.

    quote:
    Like virtually all modern software, Buzzword adheres to the
    Unicode standard, where characters are defined with 16 bits,
    resulting in a total of over 65,000 possible characters.
    Actually, Unicode (the standard) does not care about the
    number of bits.
    It has enough space to encode more than one million
    characters, and the current version (Unicode 5.1) already encodes
    more than 100,000 characters (
    http://www.unicode.org/versions/Unicode5.1.0/)
    quote:
    Buzzword must use something called "embedded fonts".
    Nothing prevents Flash/Flex from using fonts "html style".
    In fact, Buzzword can add a "Generic sans-serif" font as an
    option (font-family: Verdana, Arial, Helvetica, sans-serif;) with
    zero effort.
    The document will not look the same on all computers, but
    this might be better than the current bullets.
    So this is not a "must".

Maybe you are looking for

  • Really Need Some Help with CME 8.6 using IOS as Firewall and Anyconnect VPN on Phones

    Hello, I have a 2911 Router with IOS Security and Voice enabled and we are using CME 8.6.  I am using a built-in Anyconnect VPN on 3 phones that are for remote users and thus I needed to enable security zones on the router which works because the rem

  • Migration Error in MSSQL7 - Oracle9i

    Hello: I use OMWB 9.2.0.1.2 to migrate my MSSQL7 DB to Oracle9i,but there is always an error when OMWB starts building MSSQL data model. I got an error message below. (Sorry, I am a Chinese user and the last line in the error message "��Ƥj�p�j�������

  • Setting system variables for Oracle Forms at runtime

    Hi, I've read somewhere that a user can set some Oracle Forms system variables like SYSTEM.MESSAGE_LEVEL, SYSTEM.DATE_THRESHOLD, SYSTEM.EFFECTIVE_DATE, SYSTEM.SUPPRESS_WORKING at runtime. Does anyone know how? I want to use the same fmx file with var

  • Enable Security for a Service

    Hi, I have a SOA Service 11.1.1.5. I need to protect the service so that a specific user/password is accepted to invoke the service. I have also configured OID LDAP Provider. I tried both the below policies oracle/wss_username_token_service_policy or

  • No authorization for this action when startin ESR in PI

    Hi, We  try to set up our authorizations correctly in PI, but when I try to start the ESR of PI I get the message 'No authorization for this action'. My user has the administrator role, developer role en configurator role. In the log I see I got logg