ASP.NET unicode to hindi not working - asp.net

We are getting below json from a web api , we want to show the unicode text in it in hindi language in asp.net label
{"from":"en","to":"mr","text":"How are you?","translationText":"तू कसा आहेस"}
the text in bold above if opened in notepad shows in hindi , see screenshot
but if same text is set in ASP.NET label then it shows as तू कसा à¤†à¤¹à¥‡à ¤ we have also added content type utf-8 in
why its not coming in Hindi?
We also tried setting lable font to 'Consolas' as per some codeproject article ,we also tried Devnagari custom font but no luck.

can you please try this?
#Html.Raw(((char)hello).ToString())
replace hello with your unicode

Related

Font issue when trying to export file from ReportViewer Control

I am using ReportViewer control to export data as word document(doc). when I download the file it appears like this:
There is problem with Arabic font as you see, English words are okay. Do you know how to fix this issue ?
Select the Table > from Localization > choose LayoutDirection to "RTL"

birt report arabic text not showing in pdf

Hi I'm trying to enter simple arabic text in a brt report, the arabic text shows fine in the editor, but in the pdf it shows unknown caracters.
I'm guessing it's some sort of encoding, i tried to use tahoma font (since it includes arabic, ) but same problem.
Any idea how to fix this ?
Thanks
I had similar issue in my application.Its related to font. For that I have created my version of fontsConfig.xml and loaded it on my application start.
EngineConfig class has the following method to load it.
setFontConfig( URL fontConfig )

Reporting With Unicode

Firs of all I apologize for my English.
I am developing an asp.net application withe .NET Frame work 3.5 and Sql Server 2008. I am using RDLC for reporting. I have to generate reports in 'Hindi , so I have to use Unicode.
While Running the application and getting report in browser:
in aspx page it shows all Unicode characters properly, no matter what font I have set for it.If font is 'Times New Roman' or 'Arial Unicode MS' the output is same and proper(in the browser). But exporting it to PDF it depends on what font I have set for it. When I have set Font Times New Roman it shows some thing like ???????? instead of Unicode Characters and when I set Font to Arial Unicode MS it works but still there is some problem with few characters.
As we have many fonts pre-installed in our windows systems (like Arial, Times New Roman etc.) , Is there any separate set of Fonts specially for Unicode?
If There is a separate set of fonts for Unicode then what Font are pre-installed on system?(Which font I should use in my web application that it should appear properly on all system, users must not need to install any kind of fonts to see the report on their machine).
If There is not a separate set of fonts for Unicode (as it shows all Unicode characters in aspx page properly no matter what font I choose ) then what is problem with exporting reports to the pdf?
And finally It may be I have some misconcept/miscode about uincode and reporting, then What should I do to generate reports that can be converted in pdf with Unicode ?( I need reports in both formate aspx and pdf). or I should use some other tools for reporting.
because in client side you must have to install that hindi font..
According to this: https://stackoverflow.com/a/163029/1828416, most likely, you need to embbed the font or the characters in your PDF file.
Use Arial Unicode MS Bold for all purposes. It works for me. Arial Unicode Normal gives some problem.

Text in resource file is not displaying correctly in Chinese

I have a website that is written in asp.net where the text is resourced in resource files. I am able to successfully view the correct characters for all (Spanish, German, Arabic, Korean, etc) languages except Chinese. When I change my browser to Chinese (any version) I get weird characters displayed. I have Chinese fonts installed and have tried changing encoding but nothing seems to work. This is happening in both IE9 and FF9.
Ex:
English - Progress
Chinese (in resource file) - 進度
Display in browser - 进程
Any help would be appreciated,
Matt
If you see weird characters in the .resx file when you edit it in Visual Studio, that means the file itself is corrupt. Fix the errors and the text should show up properly in the browser.

Trouble displaying MS Word html file in Asp.Net Literal Control

When I display an html file that was created in MS Word, it doesn't render correctly in the ASP Literal control. It seems to have trouble showing tabs, dashes, bullets, etc. Is there something I can do to make this work?
Some characters from MSWord will never appear correct: tabs, bullets, dashes. You could use XL instead of Word and create a macro that changes the bullets to • or dashes to −. I dont think tabs have an html equivilent.
Others characters (international) can only be shown if both your ascx and aspx are both UTF-8 encoded.

Resources