dislin titlin and string decode

luis solisgb at gmail.com
Sat May 19 17:28:51 EDT 2007


On 19 mayo, 12:56, luis <soli... at gmail.com> wrote:
> Hello!
>
> I have an unespectedn result with dislin titlin
>
> dislin.metafl ('WMF')
> dislin.disini ()
>
> ....
> a="Andrés or Ramón"
> dislin.titlin (a.encode("Latin-1"), 1)
> # not error raised, is ok
> ....
>
> dislin.disfin ()
>
> In the output file all is ok but the title is
>
> Andr s or Ram n
>
> Thanks in advance!

The problem was the value of dislin.chacod. This must be 'ISO1' not
the default ('STANDAR')




More information about the Python-list mailing list