DEV Community

Discussion on: How to localize texts in your client-side Blazor WebAssembly App?

Collapse
 
taalkathiri profile image
Tarik Alkathiri

Thank you sooooo much for your solution
it is really helped me and works great with me
but when i use arabic character in the localization (I am using Json) the characters displayed as ��� ������.
Could you please help me in this.
I am sorry for asking too much but i am windows developer and completely new to Core 3 and Blazor Server-Side.

Collapse
 
j_sakamoto profile image
jsakamoto

Did you save the json file with utf-8 encoding?

If you upload the json file that can reproduce your problem to somewhere public cloud storage, then I can investigate it.

Collapse
 
taalkathiri profile image
Tarik Alkathiri • Edited

Dear jsakamoto
Thank you very much for your reply.
I just opened the json file in notepad and saved it as text with utf-8 encoding
then i renamed it in the solution to .json and it works fine and shows the arabic character.
Thank you very much for your effort, and sorry for troubling you.
P.S. Do I have to do that with every json file or there is a better way.

Thread Thread
 
j_sakamoto profile image
jsakamoto

P.S. Do I have to do that with every json file or there is a better way.

How about using Visual Studio Code for?

Thread Thread
 
taalkathiri profile image
Tarik Alkathiri

Thank you very much.
The Visual Studio Code did the job well, it shows the right characters.