problems with char(XX) when XX is larger than 127

조회 수: 1 (최근 30일)
Liwei Dai
Liwei Dai 2016년 5월 23일
Hello, there. I've encountered the following problem.
As I typed in char(120:180), I got a lot of ? marks like this:
>> char(120:180)
ans =
xyz{|}~?????????????????????????????????????¤??§¨???????°±???
There is no problem for my MATLAB to recognize characters smaller than 127, however, it just can't recognize other characters?
Also, my PC system's default language is Chinese, when I'm writing to an Excel file with some Chinese characters in it, there is no problem. BUT, when I'm sending an email with an Excel attachment that has an Chinese character name, the file name just become a bunch of garbled characters. Like this:
Title of the email and the message displays Chinese characters alright, just the name of the attachments is messed up encoding. I guess these two problems are related, please help, thanks.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Export to MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by