Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

encoding problem with mputl

10 views
Skip to first unread message

philippe

unread,
Nov 20, 2009, 10:22:32 AM11/20/09
to
Hi every body,

I use mputl to write strings in a text file. The file generated by
mputl has encoding UTF-8, whereas I prefer ISO-8859-1 encoding. See
example below (with scilab 5.1.1 on windows XP):

-->str='texte accentu�'
str =

texte accentu�

-->mputl(str,'temp.txt')
ans =

T

-->unix_w('file temp.txt')
temp.txt: UTF-8 Unicode text, with CRLF line terminators

I now that i can change encoding using the command

unix('iconv -f UTF-8 -t ISO-8859-1 temp.txt>templantin1.txt')

but I would prefer to avoid this additional command.

Philippe.

0 new messages