help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with strrep


From: Pascal Grandeau
Subject: Re: Problem with strrep
Date: Sun, 27 Feb 2011 12:11:36 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7

Thank you.
I study strrep and it seems the problem come from the function toascii used in strrep :
>>> toascii("é")

ans = 105

>>> toascii("i")

ans = 105
>>>
This is why 'é' becomes 'i'.

There is a problem with toascii and accentued characters.
I shall try to see why but if you have and idea, this help me.

Pascal Grandeau


Le 26/02/2011 19:01, Jordi Gutiérrez Hermoso a écrit :
On 26 February 2011 07:41, Pascal Grandeau <address@hidden> wrote:
I have a problem with strrep :

x = '12-déc.-05'
strrep(x,".",'')
ans = 12-dic-05

or what I need is 12-déc-05

It seems the "é" is transformed in "i". Why ?
This is not what I want, how can I correct that ?
I can reproduce a similar encoding problem in 3.2.4, but not in 3.4.0.
Are you able to compile 3.4.0? Sorry we've fallen behind with the
binary distribution.

- Jordi G. H.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]