Main index > Usage problems > International (spanish) characters [SOLVED]

By elbor (User), on Fri Aug 26 02:20:57 2005: International (spanish) characters [SOLVED].

I'm experimenting with the doityourself desklet, and I find that if I try to show some text with any spanish character (i.e: ?, ?, ?, etc), it doesn't show up. It appears blank from that character.

Any suggestions?

Best regards.

Guillermo

By syfou (Core Developer & Desklet Author), on Fri Aug 26 02:51:03 2005.

Guillermo,

Have you followed was suggested in the "Special notes on internationalization" section from the documentation? (part of chapter 4 at the time of writing)?

adesklets itself does support latin-1 characters without problems on most platforms...

http://adesklets.sourceforge.net/verbatim/dys_spanish.jpg

Regards,

By elbor (User), on Fri Aug 26 04:41:28 2005.

syfou wrote:

Guillermo,

Have you followed was suggested in the "Special notes on internationalization" section from the documentation? (part of chapter 4 at the time of writing)?


Sorry, I was searching through the docs, but didn't find that section.

Quote:

http://adesklets.sourceforge.net/verbatim/dys_spanish.jpg


Don't be so rude, please! (it's a joke). :D

Thanks for your attention.

Guillermo

By dessaya (Desklet Author), on Fri Aug 26 07:14:48 2005: Re: International (spanish) characters..

elbor wrote:

I'm experimenting with the doityourself desklet, and I find that if I try to show some text with any spanish character (i.e: ?, ?, ?, etc), it doesn't show up. It appears blank from that character.

Any suggestions?


Guillermo,
Try using the iconv command to convert text between encodings. In my case I use the iso-8859-1 default encoding, and something like this solves the problem:

Code:

#!/bin/bash
echo "?Buenos d?as!" | iconv -f iso-8859-1 -t utf-8

By syfou (Core Developer & Desklet Author), on Fri Aug 26 14:11:14 2005.

[corrupted text]

By syfou (Core Developer & Desklet Author), on Fri Aug 26 14:14:23 2005: Re: International (spanish) characters..

dessaya wrote:


Guillermo,
Try using the iconv command to convert text between encodings. In my case I use the iso-8859-1 default encoding, and something like this solves the problem:

Code:

#!/bin/bash
echo "?Buenos d?as!" | iconv -f iso-8859-1 -t utf-8


Well, this depends of your system, really. What is truly portable across platforms as input to adesklets is only plain old ASCII... But, if you have iconv, you do not need to convert away from your "natural" system encoding: adesklets will do the conversion for you, as long as you specify somehow what the input encoding is. For doityourself, it is only a matter of changing the -*- coding: ASCII -*- line at the top of its configuration file.

By elbor (User), on Fri Aug 26 15:23:12 2005.

dessaya and syfou:

Thanks for your comments.

Best regards.

Guillermo.


adesklets is proud to be hosted on:

SourceForge.net Logo

Back to adesklets.sf.net.