Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended characters get wrong when using twidge #51

Open
joje47 opened this issue Aug 1, 2013 · 3 comments
Open

Extended characters get wrong when using twidge #51

joje47 opened this issue Aug 1, 2013 · 3 comments

Comments

@joje47
Copy link

joje47 commented Aug 1, 2013

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
Copy link
Owner

jgoerzen commented Aug 2, 2013

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
#51.

@joaquinlpereyra
Copy link

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
Copy link
Owner

Can you try running twidge status 736519909178548224 for me?

On my system, I see:

<Lufthansa_DE> "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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants