What should I set up in locale.conf to avoid conversion errors?

When I try to use my Ruby script I always get a "invalid byte sequence in US-ASCII (ArgumentError) exception". I managed to track down that program arguments are passed in US-ASCII encoding. However Ruby scripts are using strings with UTF-8 encoding. Formerly those Ruby scripts worked fine, and I found out they keep working if I explicitly convert program arguments (passed as ARGV[]) to UTF-8 encoding.
I think I have "locale" problems. Maybe I should set up LC_CTYPE somewhere in the config files.
When I issue command "locale -a" I see:
C
POSIX
en_US.utf8
hu_HU.utf8
/etc/locale.conf
LANG=en_EN.UTF-8
LANGUAGE=en_EN.UTF-8
LC_CTYPE=en_EN.UTF-8
However I added the last line recently, and I don't know how to "source" this kind of file, to manifest their content.

As far as I know, the locale / LANG setting en_EN.* does not exist, at least it does not appear in my /etc/locale.gen.
You probably want en_{US,GB}.UTF-8 (or anything else from /etc/locale.gen)
Though, I am not sure whether this is related to your problem, since 'locale -a' gives correct output.
Last edited by respiranto (2015-06-02 20:18:07)

Similar Messages

  • What should I set me screen resolution to in photoshop CC with my late 2009 27" iMac?

    What should I set me screen resolution to in photoshop CC with my late 2009 27" iMac?

    If its native resolution is 2560x1440 then some people do find it marginal with a 27 inch screen, but I'd have thought it workable if you know where everything is.  People are using that screen res on tiny laptops, but to be fair, they are not much liking it with Photoshop.
    I don't know how Retina support works with CC, but I wonder if you could force it on your iMac?
    Any Mac users out there know how Retina support works?

  • HT5568 what should I do when I get  this message ? (NSURLErrorDomain error -3001.)(102)

    what should I do when I get  this message ? (NSURLErrorDomain error -3001.)(102)

    Many poeple has the same problem. All you have to do is download and istall this update manually from here: http://swcdn.apple.com/content/downloads/53/02/041-8081/2jwp4wjrwygtm4lc608qy4h0 n4a9yyq37g/Safari6.0.2Mountain.pkg
    Hope this helps!

  • HT on Neo Plat 2 what should I set it to?

    I have a Neo Platinum 2 with a A64 3500+ in it, when I got into the bios HT is set to 4 as default, is that right or should it be set to a different number?  I do not want to overclock just run the chip at its correct speed.
    Thanks for any help in advance

    nVIDIA® nForce3 Ultra Chipset - HyperTransport supporting speed up to 1GHz (2000MT/s)
    If I'm not wrong, the default should be 200(HTT) x 5(HT) =  1000Mhz and it's DDR so 1000 x 2 = 2000MT/s
    If you are overclocking you should set the HT to 4x or 3x depends on what's your HTT. Just remember to keep close to 1000Mhz
    Kindly correct me if I'm wrong 

  • What should compatability setting be for 32 bit windows 7

    Recently my computer guy switched me from Internet Explorer to Firefox. Since then I have been having problems with computer overheating. I believe it relates to Flash Player used for playing games on facebook. I have researched and found others have had problems with this also. In my researching I looked at Firefox properties and found that the Compatibilities settings show Windows xpService Pack 3 and am wondering why the setting is not Windows 7.
    I have done further research and found the CPU is much higher percentage and my computer definitely overheats when I use the flash player playing the games. Could the properties setting be wrong and could it be the problem. If not any suggestion would be appreciated . Thank You

    I'm sorry but I reset as advised and no difference ... NOTE HOWEVER... I did not get a 'finish' button to click after doing reset.. a pop up re signing up for newsletter with video came up instead... ??
    Re the problem however... I went to facebook and started a game which uses flash player... AND my computer started heating up right away and within a span of 2-3 minutes the CPU shot up to 70% I played for 1/2 hr and cpu stayed up .. When I came off the game (and flash player) it went back down to 1% CPU. Note again this overheating of my computer only started when I came to firefox browser...from Internet Explorer.
    question...Should the properties of firefox be changed from compatability xp service pack 3 TO Windows 7 ?? Thanks
    I'd appreciate any further help.. to stop this overheating

  • 845pe max-l mobo, what should dram setting be?

    i have ddr333 ram installed, should the dram frequency setting be set to auto or 333 ? does it make any difference?

    It (shouldn't) make any difference.

  • What should i set the quicktime speaker setup for itunes?

    I have 4 speakers and a sub........altec lansing's.....Is that considered a 4.1 setup....and if so can i also consider 4.1 and quadrophonic setup?....and also im assuming if i had that center speaker it would be considered a 5.1 setup...

    No, you cannot create a QT reference movie using QT Conversion. The reason I'm asking you all these (seemingly unrelated) questions is that I get the sense that you are resizing in your export out of FCP 5, and resizing in not the optimal fashion.
    Detail your sequence settings in FCP - including frame size - and how exactly are you exporting to Compressor.

  • In iLife08 what is best setting to convert avi 720 and digital video 1080i

    What is the bottom line for best quality for 720 p TV.
    1.) My import is digital video 1080i to i Movie 08 (full quality)
    What should I use for sharing on AppleTV
    - the preset Large (which is 960x 540)
    - or some custom setting 25 fps at 1220x 720? ( H.264 display dimensions at 24/25 fps is 720p (1280x720) ) - or what should the setting be??
    2.) Have Windows avi older 720 *480 video, what is best setting to convert this for Apple TV? The 640 setting on QuickTime premium is not very good
    Thank you so much. Peter

    Your best option if you are using NTSC footage in imovie is the export to/movie large (960 x 540) at 30 fps, the resolution won't go any higher and still work on the tv. Don't even think about changing the framerate to 24/25 fps, even though you'll be able to export to 720p (1280 x720) changing the framerate will make your video jerky.
    If you are using PAL then yes you could export to 720p (even though the specs say 24 fps, 25 fps does in fact work as well), you could try a few tests yourself but I've already done them and IMHO there is so little difference between 960 x 540 and 1280 x 720 that it isn't worth messing about setting up and trying several manual exports to get the best results when you can click one button and be done.
    So far a AVI conversion is concerned, I'd try mpegstreamclip, but saying that I can't really be sure. AVI is a container not a codec and I would need to know what codec is actually used inside the container to answer your question properly (Quicktime may tell you though). The problem with AVI is that it is simply so old (even microsoft abandoned it over 10 years ago), unfortunately in a small number of cases some of the codecs that were used in AVI are simply no longer able to be converted. Probably not so likely but at least you are warned.

  • I am having trouble burning a disk of my project what should I do?

    I am having trouble burning a disk of my project what should I do?

    Things and Software to AVOID when authoring/burning a disc... says Encore, but also applies to Premiere Elements and disc burning
    Start --> http://forums.adobe.com/thread/608660
    #2 has WHY Explained http://forums.adobe.com/thread/607390
    Plus http://forums.adobe.com/thread/562941
    http://helpx.adobe.com/creative-suite/kb/cd-dvd-drive-recognized-application.html
    Set your DVD output to a folder on your hard drive and then use the FREE Imgburn to write the folder to DVD (send the author a PayPal donation if you like his program)
    Read http://forums.adobe.com/thread/1322583 for notes on installing Imgburn WITHOUT any toolbar add-ons

  • When trying to uninstall iTune (because the current install has problems), I get the error message 2324.  What should I do to reinstall the application?

    When trying to uninstall iTune (because the current install has problems; iTune error message states it cannot sync and that I should reinstall the application; also, it fails when I tried to upgrade to the latest release), I get the error message 2324.  What should I do to reinstall the application?

    That installer error is a "Can't open file" error
    It suggest that you may have a corrupt file.
    Try running a disk check
    http://windows.microsoft.com/en-US/windows7/Check-a-drive-for-errors
    If it fixes errors try uninstalling iTunes again.
    If that doesn't work, is it possible for find out the name of the problem file, is further information available? Try looking in your Action center - that's on the control panel. Another place is in the Windows Error logs. From the start menu , right click on "Computer" and select manage, then Event viewer.
    If nothing emerges, try a manual uninstall of iTunes and related programs according to this method:
    http://support.apple.com/kb/HT1923
    Don't worry if an uninstall fails, that is expected. Go on to the part where you have to delete files (2. Verify iTunes etc completely deleted) . Hopefully you manage to find a file that can't be deleted, that is the one we will need to deal with.

  • HT201210 hi,am trying to restore my ipod but i am getting this message each time:the ipod could not be restored-an unknown error occured,what should i do?

    hi,am trying to restore my ipod but i am getting this message each time:the ipod could not be restored-an unknown error occured,what should i do?

    Was the complete wording of the error message? Usually an error number or other information is also provided

  • What should I do when I get failure to instal error message?

    what should I do when I get a failure to install error message?

    Could you please provide some more details like Product you are installing,  OS details etc.

  • When i try to buy mountain lion it says app store error (100) try later what should i do

    when i try to buy mountain lion it says app store error (100) try later what should i do

    Try here first >  Mac App Store: "An unknown error occurred (100)" when purchasing
    If that doesn't help, try the following:
    Disable anti virus software.
    Turn off the Firewall in System Preferences > Security (or Security & Privacy) > Firewall
    If that doesn't help, open the Finder. From the Finder menu bar click Go > Go to Folder
    Type this exactly as you see it here:
    ~/Library/Caches/com.apple.appstore/Cache.db
    Click Go
    Move the Cache.db file to the Trash.
    Now here:
    ~/Library/Preferences
    Click Go
    Move these files from the Preferences folder to the Trash.
    com.apple.appstore.plist
    com.apple.storeagent.pllist
    Now here:
    ~/Library/Cookies
    Click Go
    Move the com.apple.appstore.plist file from the Cookies folder to the Trash.
    Empty the Trash, try the App Store.

  • I can't update my iOS 5! it downloads it and than say that there is error with connection? what should I do?

    it downloads it and than say that there is error with connection? what should I do?

    Are you getting a network connection error or a different error ? If it is a network connection and you've tried turning off all your firewall and antivirus software then you could try downloading the update via a browser : https://discussions.apple.com/message/16703914#16703914

  • Error 150.30.  Upgraded to a new computer; got this error message when I tried to launch it.  What should I do?

    Upgraded to a new computer; got this error message when I tried to launch it.  What should I do?

    Seen this iBA User Tip?
                     ERROR ITMS-9000: "Files of type audio/x-m4a are not allowed outside of widgets:..."

Maybe you are looking for