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.

Similar Messages

  • 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"));

  • 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

  • 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.

  • Displaying unicode characters

    Dear all,
    I am currently dealing with a character displaying problem on the MAM.
    We will soon go live in China. Until now we only had European countries, with a Latin alphabet.
    Now however this changes, so we need to use Unicode to display all characters correctly.
    Therefor I have converted all our custom language files to language files with Unicode escape characters.
    e.g.:
    EQUIPMENTS_EQU_MAT_NR=设备材料号码
    Now the strange thing is that when we login in Chinese, everything is displayed correctly, but when we login in German or Polish (countries which also have some special characters), we don't see everything displayed correctly.
    This is the code how we display an entry from the language file on the screen:
    <%@page language="java" contentType="text/html; charset=UTF-8"%>
    meta http-equiv="Content-Type" content="text-html; charset=UTF-8"
    <jsp:useBean id="res" class="com.sap.ip.me.api.services.MEResourceBundle" scope="session"></jsp:useBean>
    <%=PageUtil.ConvertISO8859toUTF8(res.getString("CONFIRMATIONS_HEADER_DETAIL"))%>
    For Chinese language, the characters are displayed correctly in this way.
    e.g.: 最后一次同步时间
    However Polish characters and German characters are not (always) displayed correctly.
    e.g.: Wskaźnik pierwszego usuniÄu2122cia usterki
    The only 'difference' that I can see is that for China, every character in the language file has a special Unicode notation, while for Polish and German characters, only the special characters are displayed in special Unicode notation.
    e.g.:
      EQUIPMENTS_EQU_MAT_NR=Numer materia\u00c5‚u sprz\u00c4™tu
    FYI, I've converted the files to Unicode escape characters with the java util native2ascii.exe.
    Is there anyone who knows how to solve this issue?
    Thanks already in advance!
    Best regards,
    Diederik
    Edited by: Diederik Van Wassenhove on Jul 6, 2009 2:34 PM

    Dear all,
    I've found the reason for this problem.
    Thanks anyway for your time!
    The problem was that when converting the language files to Unicode escape characters, the source format was wrong. The files where saved as UTF-8, but the JAVA tool native2ascii is not taking UTF-8 as standard input format. So the resulting Unicode file was not containing the correct Unicode characters.
    I've re-generated the language files with the parameter -encoding UTF-8, and now everything is displayed correctly!
    Have a good day!
    Diederik

  • Illustrator CS6 is not displaying unicode characters properly.

    I need to access certain unicode characters (namely the x/8 fractions). I have the appropriate font installed, and the characters display in every other program on the machine, but they are not displaying correctly in Illustrator. If I type the characters in using alt codes, the 3/8 character displays as "\", the 1/8 character displays as "[", etc. Is there some setting I need to change to enable support for Unicode characters?
    *UPDATE*
    If I type the character in another program, copy it, and paste it into Illustrator, it shows up as a box with an X through it. If I highlight the box and change the font to one that supports the character, then the character does display correctly. This is, however, quite inconvenient. Is there a way to type the character directly into Illustrator?
    Message was edited by: NovakDamien

    I use the following method...
    Mike

  • 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"

  • Issue with display of decimal places

    Hi,
    In our custom built components we are facing a strange issue with the display decimals  where the data type of an element is "QUAN - Quantity field, points to a unit field with format UNIT".
    If the element has a value of 3000.000 KG the value is displayed as 3000. Where as for an element which has a value 3000.123 KG the same is displayed as it is with the decimals. We tried to resolve the issue by using Text editor or Input field as read only but in vain. The display property in the context are set to default.
    If we change the element data type reference to "Dec - Counter or amount field with Comma and Sign" then all the values are displayed with the decimal places even if decimals are zero.
    As a result we are facing alignment issues for the various quantity related elements displayed on the screen.  To change the underlying data type of the element is a not a solution for us as the data type quan is required for conversion from one unit to another unit.
    Can someone please advise how we could resolve this issue.  We are on NW 7.0 + EHP4 + NW 7.01 SP4, kernel patch level 55 for 7.01
    Regards
    Rohit Chowdhary

    Jameel, Thanks for the answer but this is a not a solution for us. We have around 40-50 webdynpro components and with mutliple views referring to this data element / domain combination. More so the context are bound to database tables / structures . 
    I hope to get a reply from Thomas on possible solution for this. I am not sure if I can open an support ticket for this issue.
    Rohit Chowdhary

  • [SOLVED] Conky Not Displaying Unicode Characters Correctly

    I have some music that requires unicode characters in order to be displayed properly. The artist name is Röyksopp, but it is displayed like this:
    http://i.imgur.com/rRBDxZn.png
    Does anyone know how to either make it display correctly (Röyksopp), or at least remove the umlauts to make it almost correct(Royksopp)? I've set the locale, so it displays correctly in both i3bar and urxvt, but it had no effect on conky.
    EDIT: Here is my conkyrc.
    Last edited by ProfessorProcrastinator (2014-05-14 22:50:16)

    x33a wrote:Try a different font.
    I know that this font works because I tried it in urxvt and it displayed correctly.
    Also, I tried "override_utf8_locale yes" and it still was incorrect.

  • Issue with Display Profiles

    Hi eb,
    I have a problem with Display profiles. When 2 users are log in, my display profil switch to "Generic RGB" and I cannot change it to any other profil.
    When I restart and log in one user - everything is ok. When I log in second user display profile set to Generic RGB and issue start. When I log out one of them situation is same and issue persist.
    I tryed run Color Sync Utility > Profile First Aid , but no problems found.
    Had anybody same issue?
    THX for ur help.

    Found a temporary solution! Here's the article: http://www.macworld.com/weblogs/macosxhints/2006/02/fuscolor/index.php
    Thanks to Niel from the thread at http://discussions.apple.com/thread.jspa?messageID=4776564&#4776564
    Hopefully the long-term fix is on it's way...
    Good luck!

  • How to display unicode characters

    hi
    How could we save, display, write or read Unicode characters.

    Thanks a lot. I fully understand what you have said.
    My test is running under Traditional Chinese "Big5" Windows XP system.
    Chinese "Big5" font can display on a Console window. I can even input Chinese into the console window.
    Or, in another word, I can TYPE a text file which contains "Big5" Chinese characters and show from the Console window. I assume this will prove that the Console window do know how to handle Chinese characters.
    Now, my test is trying to CONVERT a Unicode string into a Chinese character string expecting the resulting Chinese string can be output into the Console window and let the XP Console window to handle the Chinese character display.
    My main concerned question is "How can I CONVERT a Unicode string into a Big5 Chinese character string?"
    String tstr = new String("\u39321\u28207","big5");
    It seems this statement is INCORRECT, isn't it?

  • Issue with language specific characters combined with AD-Logon to BO platform and client tools

    We are using SSO via Win AD to logon to BO-Launchpad. Generally this is working which means for Launch Pad no manual log on is needed. But  this is not working for users which have language specific letters in their AD name (e.g. öäüéèê...).
    What we have tried up to now:
    If the AD-User name is Test-BÖ the log on is working with the user name Test-BO with logon type AD
    If the logon Type "SAP" is used than it is possible to use the name Test-BÖ as the username
    Generally it is no problem in AD to use language specific letters (which means it is possible to e.g. log on to Windows with the user Test-BÖ)
    It is possible to read out the AD attributes from BO side and add them to the user. Which means in the user attributes the AD name Test-BÖ is shown via automatic import from AD. So it's not the problem that the character does not reach BO.
    I have opened a ticket concerning that. SAP 1th level support is telling me that this is not a BO problem. They say it is a problem of Tomcat. I don't believe that because the log on with authentification type SAP is working.
    I have set up the same combination (AD User Test-BÖ with SAP User Test-BÖ) as a single sign on authentification in SAP BW and there it is working without problems.
    Which leads me to the conlusion: It is not a problem of AD. It is something which is connected to the BO platform but only combined with logon type AD because SAP Logon is working with language specific characters.

    I have found this article with BO support:
    You cannot add a user name or an object name that only differs by a character with a diacritic mark
    Basically this means AD stores the country specific letters as a base letter internally. Which means that if you have created a user with a country specific letter in the name you can also logon with the Base letter to Windows.
    SAP-GUI and Windows are maybe replacing the country specific letters by the base letter. Due to that SSO is working. BO seems not to be able to do that. Up to now the supporter from BO is telling me that this is not a BO problem.
    Seems to be magic that the colleagues of SAP-GUI are able to to it.

  • Internet Explorer 11 issue with displaying value in confirm password text box

    I have one Website which has deployed on Windows 2008 R2 server.
    I have one issue with one Web Page... In my Web page have 3 Text boxes for Passwords like -
    Login          :
    Password     :
    Confirm Password :
    So in this case, when this page load all data fills properly excluding confirm password.
    "Confirm Password" text box always shows Blank. This text box already filled through code as per database value, but not shown value in this text box.
    But same value is showing in first "Password" text box properly.
    This problem occurred in IE 10 and 11 only. Same page is showing properly on other browsers and IE8 also.
    Can you please give me any solution on this issue ?

    Hi,
    For the issue,I would like to confirm if the issue is related to compatibility.
    Please try to use compatibility mode use F12 to check IE8 mode will work.
    For reference about compatibility mode:
    http://blogs.msdn.com/b/ie/archive/2010/10/19/testing-sites-with-browser-mode-vs-doc-mode.aspx
    Regards,
    Kelvin hsu
    TechNet Community Support

Maybe you are looking for

  • FMB to XML Conversion

    Hi, When converting fmb to xml some of the item attributes are missing if the item is subclassed. Is there an option to include all attributes in xml ? thanks, Michael Hitrik

  • How to Restore iWeb Contents From iDisk?

    After a format of my MBP I need to find out how to get the contents of my iWeb site back onto my Mac. Which directory does it belong to on my Mac for iWeb to recognize everything properly?

  • Downgrading to Mountain Lion

    Hi Last June I purchased this MacBook Pro with Mac OS X 10.8. Mountain Lion, which was then upgraded to 10.8.5. On 28 Oct 2013 after the release of Mavericks, I tried to upgrade to Mavericks, which failed and my system got irresonsive. On the advice

  • How do I send an SMS message to someone with an Apple ID who uses an Android phone?

    My colleague has an iPad and MBP registered using their AppleID.  But they use an Android Phone.  I'm trying to send an SMS to them using Messages on my iPhone (iOS8).  The message gets sent to their iPad but not their phone.

  • Apple 4s pictures and texting

    I have an iphone 4s I  cannot receive or see pictures sent to me via text messages I used to be able to now I cant I have not done the new update. I hope this is a quick fix as I am fairly new to the iphones. thank you for your time T Stanbury