Thread Subject: Solution Found: Changing default character set.

Subject: Solution Found: Changing default character set.

From: Vincent

Date: 10 Nov, 2008 17:38:01

Message: 1 of 1

Hey all,

I found a solution to a problem I have been struggling with. I can't find any solutions here either. So I hope by posting my solution, it can be of some help to others in the future.

FYI, I have spoken to Matlab engineers about this. No solutions from them. This is an opportunistic find on my part.

Background and problem::

1. Matlab 2008a or 2008b.

2. Installed on Linux 64bit machine.

3. Problem similar to http://www.mathworks.com/support/solutions/data/1-249V2X.html?solution=1-249V2X

4. Accented characters appear as empty boxes in command window. For example, char(224) returns as an empty box instead of ?

5. All accented characters retrieved from DB will be interpreted as char(26) and shown as empty boxes.


The Solution:

1. Fire up a fresh Matlab session.

2. Type feature('DefaultCharacterSet','UTF8').

3. Follow up with feature('DefaultCharacterSet'). This should return UTF-8 in the command window.

4. Check accented characters with char() command.

5. Add lines in 2 and 3 into your startup.m.

6. Now Matlab will start up into UTF-8 under Linux 64bit every time.

=======================================

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
featuredefaultc... Vincent 10 Nov, 2008 12:40:05
linux Vincent 10 Nov, 2008 12:40:05
command window Vincent 10 Nov, 2008 12:40:04
charcter encoding Vincent 10 Nov, 2008 12:40:04
utf8 Vincent 10 Nov, 2008 12:40:04
data retrieval Vincent 10 Nov, 2008 12:40:04
linux 64 bit Vincent 10 Nov, 2008 12:40:04
special characters Vincent 10 Nov, 2008 12:40:04
accented charac... Vincent 10 Nov, 2008 12:40:04
rssFeed for this Thread

Contact us at files@mathworks.com