For Programmers: Free Programming Magazines  


Home > Archive > Matlab > December 2006 > unable to read umlaute or foreign letters using fgets









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author unable to read umlaute or foreign letters using fgets
CW

2006-12-27, 7:09 pm

Hi,

I am using fgets to retrive data in a file. However, some words
within the data file contain letters like ä, ö, ü. Using fgets to
capture those words containing such letters results in having a
square character in replacement of the umlaute letter.

And the read data could not be compared using strcmp and strmatch
because of the above situation.

Does anyone has any advice for me?

Thank you,

CW
Jérôme

2006-12-28, 4:12 am

Hi,

see the ENCODING argument of FOPEN :

http://www.mathworks.com/access/hel.../ref/fopen.html

Jérôme
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com