Re: [shoes] Shoes hebrew encoding
- From:
- i5m
- Date:
- 2011-03-28 @ 09:48
Ariel,
Just to add that the below works fine here on Windows XP, (red) Shoes
r1514 with and without the # coding line.
So perhaps it could be something to do with Windows 7 or your Windows setup?
On Sat, Mar 26, 2011 at 5:27 PM, ashbb <ashbbb@gmail.com> wrote:
>
> # coding: UTF-8
> Shoes.app do
> para "Hebrew characters: אבגדה"
> end
>
>
-----------------------
i5m.co.uk
GPG Key: 0xA18A602B
Re: [shoes] Shoes hebrew encoding
- From:
- ashbb
- Date:
- 2011-03-26 @ 17:31
Oops, sorry. In Red Shoes, there is no need to add the second line, of
course. :-P
ashbb
Re: [shoes] Shoes hebrew encoding
- From:
- Ariel Zelivansky
- Date:
- 2011-03-26 @ 17:34
Still doesn't work. I get the same error. Might it be something in my
computer? I can't figure it out.
By the way, my code is just like ashbb's code.
Re: [shoes] Shoes hebrew encoding
- From:
- ashbb
- Date:
- 2011-03-26 @ 17:38
Umm,... As Steve said earlier, could you give us a link to your code?
ashbb
Re: [shoes] Shoes hebrew encoding
- From:
- Ariel Zelivansky
- Date:
- 2011-03-26 @ 17:41
Seriously, my code is just like yours.
Shoes.app do
para "כגשכגד"
end
I tried that before even starting to make my app, to see that it works.
By the way, I just realised hebrew encoding doesn't work at all on my
computer, even with simple ruby code. (Writing to files)
I'm really confused, though I belive it's not a shoes problem.
Re: [shoes] Shoes hebrew encoding
- From:
- Cecil Coupe
- Date:
- 2011-03-26 @ 18:01
This works just fine on my Ubuntu system. Which OS are you using?
On Sat, 2011-03-26 at 19:41 +0200, Ariel Zelivansky wrote:
> Shoes.app do
> para "כגשכגד"
> end
>
Re: [shoes] Shoes hebrew encoding
- From:
- Ariel Zelivansky
- Date:
- 2011-03-26 @ 18:05
I'm using Win7.
Re: [shoes] Shoes hebrew encoding
- From:
- ashbb
- Date:
- 2011-03-26 @ 17:46
You have to add the following `magic comment` at the first line.
# coding: UTF-8
ashbb
Re: [shoes] Shoes hebrew encoding
- From:
- Ariel Zelivansky
- Date:
- 2011-03-26 @ 17:48
I did. Still no luck.
On Sat, Mar 26, 2011 at 7:46 PM, ashbb <ashbbb@gmail.com> wrote:
> You have to add the following `magic comment` at the first line.
>
> # coding: UTF-8
>
> ashbb
>
Re: [shoes] Shoes hebrew encoding
- From:
- ashbb
- Date:
- 2011-03-26 @ 17:53
Ah, umm,....
How about this one?
Shoes.app do
para "Hebrew characters: \u05D0\u05D1\u05D2\u05D3\u05D4"
end
ashbb
Re: [shoes] Shoes hebrew encoding
- From:
- Ariel Zelivansky
- Date:
- 2011-03-26 @ 17:56
It works very well!
What is it called? I would like to find a decoder that would generate such
strings. I would even make one myself if necessary.
Thanks.
Re: [shoes] Shoes hebrew encoding
- From:
- ashbb
- Date:
- 2011-03-26 @ 18:15
Ariel,
> I would like to find a decoder that would generate such strings.
If you have a file stored Hebrew characters.
Try out the following.
C:\tmp>irb
irb(main):001:0> IO.read('hebrew.txt', encoding: 'utf-8').inspect
=> "\"\\u05D0\\u05D1\\u05D2\\u05D3\\u05D4\\n\""
ashbb
Re: [shoes] Shoes hebrew encoding
- From:
- Ariel Zelivansky
- Date:
- 2011-03-26 @ 19:43
I find that as an ugly solution, though it works.
Thanks.