Arabic writing in a text file
5 ビュー (過去 30 日間)
古いコメントを表示
Hello. I want to record Arabic characters into a text file in matlab. my problem is as follows: I open the file Arabic words and I compare this document with those of another, and in the end I want to save those who are different in another document, but its not working.
2 件のコメント
Walter Roberson
2011 年 5 月 31 日
Insufficient information about what you are doing.
Do you have this working for a non-arabic test set, to be sure that the problem is the arabic and not your algorithm?
回答 (1 件)
Walter Roberson
2011 年 5 月 31 日
If you need to use native2unicode when you read the data in, you might need to use unicode2native() to prepare the data to be written out.
NL = sprintf('\n'); %newline
And open nv.txt with 'w' instead of 'wt'.
Then instead of fprintf(),
fwrite(fid, unicode2native([w NL], 'UTF-8'));
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!