locked
Browser is failing to render Japanese characters in Data Service response. RRS feed

  • Question

  • HI 

    I am building a data services that will display record from records stored in multiple languages including Japanese.

    After building the services when I am rendering it in browser (IE/Mozila/FF) but it renders some junk characters for Japanese values but English is fine, Bellow is the sample

          <m:properties>

            <d:CountryCode>JP</d:CountryCode>

            <d:CustomerID>JP-XX</d:CustomerID>

            <d:FullName>¿¿ ¿¿</d:FullName>

          </m:properties>

    I have already tried different combinations of browser languages, font and encoding  selection but no luck , Please help

    Regards

    Ashwini


    Wednesday, February 22, 2012 2:40 PM

Answers

  • Thanks Buthfa 

    However in my case I found a different root cause  

    Actually I was using “Dot Connect for Oracle” data driver to connection oracle that uses default settingUnicode=False  http://www.devart.com/dotconnect/universal/docs/UseOraDirect.html  .  I am surprise why, Even though it is industry standard?

    After applying Unicode=true attribute in collection string defined in web.config , it works perfectly fine

    <add name="MyEntities" connectionString="…………provider=Devart.Data.Oracle;provider connection string=&quot;User Id=***;Password=***;Unicode=true;Server=***;Direct=True;Sid=***;Port=***;Persist Security Info=True&quot;" providerName="System.Data.EntityClient" />


    • Marked as answer by Ashwini47 Thursday, February 23, 2012 5:00 PM
    Thursday, February 23, 2012 5:00 PM

All replies