I have a lot of problems with string encodings in ruby 1.9. I always get
EncodingErrors because ruby mixes the default encodings. I have set LANG
and LC_ALL to a utf locale.
test.rb
···
-------
def encoding_sucks_hard(string)
"hello " + string
end
On Friday 19 June 2009 06:50:19 am Daniel Mendler wrote:
Hi,
I have a lot of problems with string encodings in ruby 1.9. I always get
EncodingErrors because ruby mixes the default encodings. I have set LANG
and LC_ALL to a utf locale.
test.rb
-------
def encoding_sucks_hard(string)
"hello " + string
end
I have a lot of problems with string encodings in ruby 1.9. I always get
EncodingErrors because ruby mixes the default encodings. I have set LANG
and LC_ALL to a utf locale.
test.rb
-------
def encoding_sucks_hard(string)
"hello " + string
end