Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I Can't Write Arabic text in the XAML file

<TextBlock Text="المبلغ" />

when i built the project the following error happened:

enter image description here

any help....

like image 230
HB MAAM Avatar asked Apr 17 '12 06:04

HB MAAM


1 Answers

The problem is clear, you have a problem with your file encoding, If am not mistaken the word in the Text property up there is an Arabic keyword which requires Unicode encoding. Change your file encoding to Unicode, by doing the following:

Open the XAML file you have problem with, go to File > Save As

enter image description here

Click on the small down arrow at the save button to select the encoding

enter image description here

Select Unicode save and replace your old file.

enter image description here

This should solve your problem.

like image 199
Mohammed A. Fadil Avatar answered Oct 12 '22 23:10

Mohammed A. Fadil