jgoerzen / twidge

Command-line twitter/identica client [Haskell]
http://wiki.github.com/jgoerzen/twidge/
GNU General Public License v2.0
219 stars 29 forks source link

Extended characters get wrong when using twidge #51

Open joje47 opened 11 years ago

joje47 commented 11 years ago

Hi,

Thanks for this excellent program. I have used quite some time to figure this out, but failed. I'm not sure if its an issue with twidge or not, but let's see: When using twidge update with locale UTF-8(sv_SE) and extended characters, such as åäö, those does not show up in twitter. They will be replaced with a symbol containing a question mark instead. That is of course a big problem for me. Are there any way to get around this? I did some tests with enconv uconv etc.. but I didn't get it right. I use Firefox in Linux Mint and it is also using the locale UTF-8(SV_se) so I don't see why I should need to use another encoding..

Any ideas?

Sincerely /George

jgoerzen commented 11 years ago

Are you passing your update on the command line or by stdin? Whichever you are trying, can you try the other? What is LANG set to?

On 08/01/2013 11:06 AM, joje47 wrote:

Hi,

Thanks for this excellent program. I have used quite some time to figure this out, but failed. I'm not sure if its an issue with twidge or not, but let's see: When using twidge update with locale UTF-8(sv_SE) and extended characters, such as åäö, those does not show up in twitter. They will be replaced with a symbol containing a question mark instead. That is of course a big problem for me. Are there any way to get around this? I did some tests with enconv uconv etc.. but I didn't get it right. I use Firefox in Linux Mint and it is also using the locale UTF-8(SV_se) so I don't see why I should need to use another encoding..

Any ideas?

Sincerely /George

— Reply to this email directly or view it on GitHub https://github.com/jgoerzen/twidge/issues/51.

joaquinlpereyra commented 10 years ago

I'm having the same exact problem. My locale config:

LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=es_AR.UTF-8 LC_TIME=en_US.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=es_AR.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=es_AR.UTF-8 LC_NAME=es_AR.UTF-8 LC_ADDRESS=es_AR.UTF-8 LC_TELEPHONE=es_AR.UTF-8 LC_MEASUREMENT=es_AR.UTF-8 LC_IDENTIFICATION=es_AR.UTF-8 LC_ALL=

jgoerzen commented 8 years ago

Can you try running twidge status 736519909178548224 for me?

On my system, I see:

"Abenteuer hält meinen Geist frisch und macht meine kreative Muse glücklich." @sejkko #LHcityoftheMonth #Stockholm https://t.co/WyRkw7GtyZ If that doesn't work, please install ghc and run ghci, then type: :m System.IO hGetEncoding stdout and tell me what it says.