honestly if I was to select two things I hate about computers, they should be XML and UTF-8.
I have an xml file:
"<?xml version='1.0' encoding='UTF-8'?>...."
I have installed libxml-ruby and liblocale-ruby on my etch debian.
I have tried:
export LANG=hu_HU.UTF-8
kate sample.xml
it opens the file correctly.
I have tried
export LANG=hu_HU.UTF-8
my_script.rb sample.xml
It cannot deal with the UTF chars. I also have tried insert this line into my script (with require 'locale' of course):
Locale.setlocale(Locale::LC_ALL, 'hu_HU.UTF-8')
Have you tried putting
$KCODE=u
at the top of your script? (possibly before any requires.)
···
On Mar 7, 2006, at 2:43 PM, Mage wrote:
Hello,
honestly if I was to select two things I hate about computers, they should be XML and UTF-8.
I have an xml file:
"<?xml version='1.0' encoding='UTF-8'?>...."
I have installed libxml-ruby and liblocale-ruby on my etch debian.
I have tried:
export LANG=hu_HU.UTF-8
kate sample.xml
it opens the file correctly.
I have tried
export LANG=hu_HU.UTF-8
my_script.rb sample.xml
It cannot deal with the UTF chars. I also have tried insert this line into my script (with require 'locale' of course):
Locale.setlocale(Locale::LC_ALL, 'hu_HU.UTF-8')
honestly if I was to select two things I hate about computers, they should be XML and UTF-8.
I have an xml file:
"<?xml version='1.0' encoding='UTF-8'?>...."
I have installed libxml-ruby and liblocale-ruby on my etch debian.
I have tried:
export LANG=hu_HU.UTF-8
kate sample.xml
it opens the file correctly.
I have tried
export LANG=hu_HU.UTF-8
my_script.rb sample.xml
It cannot deal with the UTF chars. I also have tried insert this line into my script (with require 'locale' of course):
Locale.setlocale(Locale::LC_ALL, 'hu_HU.UTF-8')