c# - Create a script with Multiple languages -




problem: able create aspx file contains multiple paragraphs in different languages.

example:

english: here example. call ###-###-####

spanish: aquí hay un ejemplo. llama ###-###-####

japanese: 日本語を話される場合、無料 ###-###-#### etc.

i have tried in html when try generate it, japanese , other languages characters not render correctly. way achieve this.

i did following:

<% string value1 = "日本語を話される場合"; string value2 = httputility.htmldecode(value1); response.write(value2); %> 

and following results generated:

日本語を話ã•ã‚Œã‚‹å ´åˆ

i tried following:

    <style> body                {font-family: "times new roman",serif; } *[lang="ar"]        {font-family: "scheherazade",serif;                       font-size: 120%;} *[lang="zh-hant"]   {font-family: kai,kaiti,serif;} *[lang="zh-hans"]   {font-family: dfkai-sb,biaukai, serif;} *[lang="din"]       {font-family: "doulos sil",serif;}  .ar     {font-family: "scheherazade",serif;           font-size: 120%;} .zht    {font-family: pmingliu, mingliu,serif;} .zhs    {font-family: simsum-18030, simhei,serif;} .din    {font-family: "doulos sil",serif;} </style>   <p>it polite welcome people in own language:</p> <ul>     <li class="zhs" lang="zh-hans">欢迎</li>     <li class="zht" lang="zh-hant">歡迎</li>     <li class="el" lang="el">Καλοσωρίσατε</li>     <li class="ar" lang="ar">اهلا وسهلا</li>     <li class="ru" lang="ru">Добро пожаловать</li>     <li class="din" lang="din">kudual</li> </ul> 

and following results:

欢迎

æ­¡è¿Ž

ΚαλοσωÏίσατε

اهلا وسهلا

Добро пожаловать

kudual





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -