ttscoff / doing

MIT License
1.13k stars 91 forks source link

Problem when using å ä ö #11

Closed Tazer closed 10 years ago

Tazer commented 10 years ago

Hello,

Tried doing and its cool! But having problems when I have entered å ä ö. Then I'm getting the following error. and its broken :(

C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/doing-0.1.7/lib/doing/wwid.rb:85:in `spl
it': invalid byte sequence in UTF-8 (ArgumentError)
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/doing-0.1.7/lib/doing/wwid.
rb:85:in `initialize'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/doing-0.1.7/bin/doing:9:in
`new'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/doing-0.1.7/bin/doing:9:in
`<top (required)>'
        from C:/Ruby200-x64/bin/doing:23:in `load'
        from C:/Ruby200-x64/bin/doing:23:in `<main>'
ttscoff commented 10 years ago

Are you able to enter other things without non-Latin characters? I just tested with å ä ö on both Ruby 1.8 and 2.0 and didn't have any issues. What version are you using, and on what platform?

Tazer commented 10 years ago

Hmmm ... after testing some more. I'm getting that error on ALL commands.
Maybe it was a coincidence that I entered å ä ö. But now I cant get it working. Have tried to gem uninstall / install again. But still same error on all commands.

Running Windows 8.1 x64 with Ruby 2.0 x64

ttscoff commented 10 years ago

I'm afraid I haven't used Windows for almost 10 years, and know nothing about the environment now. (I'm actually happy to say that...). I don't know why 2.0 on Windows would be different from 2.0 on a Mac, but if anyone has input, I'm happy to adjust for it.

infotexture commented 10 years ago

The documentation for jrnl suggests the following for a similar issue:

The Windows shell prior to Windows 7 has issues with unicode encoding. If you want to use non-ascii characters, change the codepage with chcp 1252

See http://technet.microsoft.com/en-us/library/bb490874.aspx.

Tazer commented 10 years ago

Still same error if I try to change the codepage. (Tried with 865 also as it was "nordic")

C:\WINDOWS\system32>chcp 1252
Active code page: 1252

C:\WINDOWS\system32>doing recent
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/doing-0.1.7/lib/doing/wwid.rb:85:in `spl
it': invalid byte sequence in UTF-8 (ArgumentError)
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/doing-0.1.7/lib/doing/wwid.
rb:85:in `initialize'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/doing-0.1.7/bin/doing:9:in
`new'
        from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/doing-0.1.7/bin/doing:9:in
`<top (required)>'
        from C:/Ruby200-x64/bin/doing:23:in `load'
        from C:/Ruby200-x64/bin/doing:23:in `<main>'
´´´
ttscoff commented 10 years ago

I'm marking this as wontfix because I have no experience with this and no means of doing so right now. If anyone with more Win/Ruby knowledge wants to take a look, I'm always open to it.

sssfff commented 10 years ago

No issue with umlauts so far on MacOS.