Should I go utf8 all the way?

I think I need some advise on the topic of encodings. My system right now is a mess: One old Windows partition (NTFS), one shared FAT32 partition, both with files from a long time ago in i don't know which encoding, filenames with and without non-ascii characters, etc.
Then there are the linux partitions with mostly new files created under my current locale, en_GB, although i tried out en_GB.utf8 for a while.
My files are partly English, partly Norwegian/Swedish, so I need to accomodate the special characters of those languages, but I have no need neither for Arabic nor Korean/Japanese etc.
When I would still like to switch to a fully unicoded system, it's partly to  avoid the mess, but mostly because some  of the programs I need and use on a daily basis, require unicode files (lilypond, etc.). I've had some programs complain about incorrect file name encoding (gwenview, I think, or perhaps gqview), and my file names with non-ascii characters show up in several different ways, and, it seems, differently in X-apps, in consoles, in terminals, in vim, etc.
So, there you have my situation. Does anyone have experience - good or bad - with this kind of situation? Ideally, I suppose, I'd like all my files to be properly unicoded, both regarding file names and contents. But I assume this involves a potentially "dangerous" situation with a batch job with iconv?
What are the pitfalls I need to keep in mind before I do this? Are there other solutions I might consider? What about apps which don't support unicode - would I be better off staying in latin1 - perhaps converting everything to that instead of unicode? As I said, in terms of characters, I really don't need more than what latin1 can offer, but some apps require unicode for the file encoding.
Any help, feedback, pointers to good sites, etc. are appreciated.

apps not supporting unicode tend to be rare these days, as most apps are built on qt, gtk, python, java, mono, readline, etc... and thus support utf8 OOTB.
IIRC (some part of) zsh does not support unicode.
you should also make clear distinction on multiple things:
1. display/input uft8
2. utf8 filenames in filesystem(s)
3. utf8 file contents
gentoo has good reference:
http://gentoo-wiki.com/HOWTO_Create_an_ … led_system
http://gentoo-wiki.com/HOWTO_Make_your_ … code/utf-8
as for my advice, I'd say go for utf8 all the way. when you're on the rails, it's just transparent, and if you happen to have some file/contents having some 'weird' character in it, you'll always be okay ('weird' being relative, you don't need to go as far as Arabic: that could simply be a simple accented character not present in your ISO-* set). why be restricted when you can just as well be open? you never know what might be your need tomorrow: e.g I'm french (accented chars), I got on to learn japanese (obvious chars), and I may be in relation occasionally with at least spanish (tilda chars), and german (umlauts and ss) someday in my work. I woudn't want to have to handle 5 charsets, or to convert to utf8 at that time, so I took things in hand right now, ready and set.
personnally the first thing I do when I install arch is locale-gen en_US.UTF-8 and set locale to it.
as for windows compatibility, NTFS filenames are stored as utf8 IIRC, and fat32 can have utf8 enabled, though IIRC it makes the fs case sensitive. regarding file contents, most not too old windows software usually handle utf8 correctly (at least never had a problem, when I still had windows). issues arise when files are stored in non-iso windows encoding (cp1252 and the like), which I was never able to convert successfully, yet it can just be my fault for not trying hard enough (because the few files I had being non-utf8 were not that important).
EDIT: some additions
Last edited by lloeki (2007-04-23 12:30:28)

Similar Messages

  • Should I run my battery all the way down the first time I use my new Macbook Pro?

    I just received a new Pro. Is it better to let the battey run all the way down on the first use? Should I charge it all the way up and then let it run all the way down? Does either make any difference? Thanks.

    That is definitely not required.
    About Batteries in Modern Apple Laptops
    Apple - Batteries - Notebooks
    Extending the Life of Your Laptop Battery
    Apple - Batteries
    Determining Battery Cycle Count
    Calibrating your computer's battery for best performance
    MacBook and MacBook Pro- Mac reduces processor speed when battery is removed while operating from an A-C adaptor
    Battery University

  • HT4060 How long should it take to charge battery when it is all the way down? (I Pad 3)

    How long should it take to charge I Pad 3 when the battery is all the way down?

    That depends on a number of things, but using the power adapter plugged into a wall socket it takes my iPad 3 about 5 hours to fully recharge.

  • Should I take my iPhone 4 to the apple store to get my vibrate button? Because it doesn't go down all the way

    My iPhone 4 vibrate button doesn't go down all the way, could I get that fixed?

    If it is defective and still under warranty then they wil replace the iphone for free.
    If it is not under warranty then you can buy an out of warranty replacement.  In the U.S that would cost $149

  • Is it necessary to let my I pad battery go all the way down or should I recharge it at 10%

    I have been told to let my I pad battery run all the way down until the screen goes black and then to charge it .  And to do this once a month.  Is this correct?   Will this help the life of the battery? Will it help the battery accept a better charge?

    The advice to do that at least once a month is from here http://www.apple.com/batteries/ipad.html :
    For proper reporting of the battery’s state of charge, be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).

  • Having a problem with mini dvi to hdmi.  Can see the background, but must move all screens all the way to the right to see on tv.  Any solutions?

    I'm having an issue with setting up mini dvi to hdmi.  I can connect and see the background picture from my macbook (approx 4 years old) but in order to see any screens or video, I have to move the screen almost all the way off the macbook display to the right.  Any ideas why this would happen?  Also, there is no audio, although when I bought the adapter and cable at the Mac store, they assured me it would handle both.

    You have the display set in Extended Desktop mode. In System Preferences>Displays on the MacBook screen there should be an Arrangement tab when you have the MacBook hooked up to the TV and both screens working. When you click the Arrangement tab do you see two monitors side by side? One of them will have a Menu Bar at the top. Just click on the Menu Bar and drag it to the second monitor. That will makethe second monitor your main screen. You can now use your MacBook in ClamshellMode with a wired or Bluetooth keyboard and mouse.  http://support.apple.com/kb/HT3131 When you disconnect from the TV your Menu Bar will automatically change back to the MacBook.
    Or if you want to work on the MacBook screen while showing it on a TV you can check the Mirror Display box on the lower left hand side of the Arrangement tab under the two monitors box.
    No Mini-DVI adapter can carry audio. The only MacBook that sends audio is the Mid 2010 model 7,1 through a Mini DisplayPort.
    If you connect the MacBook using a Mini-DVI to HDMI adapter you will probably need to use external speakers or a 3.5mm stereo headphone jack to RCA sound plugs connected to a stereo system for audio if your TV doesn't have separate RCA input plugs for audio with the HDMI plug. The Mini-DVI to HDMI doesn't carry audio and there're no audio plugs on most TVs to work with HDMI since it's expecting audio with the HDMI.

  • TS1362 Music doesn't play all the way through

    I uploaded all my music i bought to my new laptop. I got them through the purchased and redownloaded them since my other computer wont start up anymore. I started to listen to them and some will play for 30 seconds and then switch songs or play three fours of the way through.  What should i do?

    I have this problem too, on loads of tracks. When watched in playback via itunes, some just stop half way along the playback bar. At other times they get all the way to the 'end', but this is actually before the end of the track. I have tried re-downloading the tracks from iTunes, but it won't let me. When I play them from the previously purchased button, it is even worse, it can cut a 3 minute track down to 1 minute.
    Any help would be apreciated.

  • When first loading, FIREFOX doesn't open all the way.

    When I first open FIREFOX, it doesn't open all the way. When I open another, FIREFOX

    Hi weaver15,
    You should try changing your home page to:
    about:home
    I think this is probably the page you are looking for. If you don't know how to change the home page, you should take a look at the Knowledge Base article [[How to set the home page]].
    Hopefully this helps

  • HT4900 When opening an email on my macpro some of the emails open all the way to the right of the screen...others open in the center of the screen...I want them all to open in the center. Is there a setting that needs to be changed?

    When opeing my email on my macbook pro some of my email messages show up in the middle of the screen..others show up all the way to the right. I want all of the emails to show in the middle of my screen. Is there a setting to change? Right now I have to open..close and then re-open some messages to get them to show in the middle of the screen. Thanks.

    No.
    Try this:
    Open one email.
    Adjust size and position.
    Close your mail application.
    Future mails should open as per the last email until you change it.
    The same is so for Safari windows.

  • HT201210 I was doing an update on my iphone and it stopped short of getting it all the way done. Now my phone is stuck with an itunes icon on the screen, and will not allow me to do anything with it. I tried shutting it down and restarting it...same icon

    I tried to update my phone. The update didnt go all the way through, and ended up freezing the screen on my iphone with an itunes icon on it. I tried to reboot phone with no success...the icon stays on there with no other function of the phone available. Anybody know of a fix?

    Put your iphone in dfu mode by doing this. Turn your iphone off. When its off, hold home and power button together for exactly 10 seconds, then release the power button and keep holding home button for another 10 seconds. Then open up itunes on your pc and plug your iphone to your pc. Itunes should recognize your iphone in recovery mode and it will tell you to restore it. Click restore, and your iphone will restore. Remember that, if you do this you will lose everything that was on your iphone. You can restore from backup later on. Hope I helped. If you have any questions or problems with this tutarial, you can contact me personaly on my email [email protected]   . Hope I helped. Cheers

  • My iPod is working but the charger won't go all the way in the charger slot to recharge it,someone please tell me want the problem can be. How can I fix this. Thank you

    MMy iPod is workin,but my charger no longer fixes all the way in the  slot to recharge it. Want should I do. Thank you

    Hey Lynette1234, As UbuntuXP stated check and clean the port of foreign debris. Lint packed in the bottom of the charging port is most often the problem, This seems to be more of an issue with the lighting ports used on the iPod 5. The following will help you clear / clean the lighting port on an iPod 5. Try using a strong light and a magnifying glass to look into the port, using a soft brush to carefully remove any debris, if you must a non-conductive probe may be needed, I find a round wooden toothpick work well. Avoid touching or bending the gold contact pins on the long side of the port. Damage them and you will have a costly repair. Also, make sure the silver lock springs (looks like silver bump on each end) on the short sides of the port are free to move, if not clear the debris. If the older 30 pin type, same thing avoid touching, bending the contacts, and remove all foreign debris. Many report a soft toothbrush works well or a toothpick. Avoid using solvents if the contact pins appear corroded, generally plugging / plugging the charger end , about 12 times will clean dirty contacts. If you must, a cotton swab cut to fit the port with a drop of 91% isopropyl alcohol on it, (you want the swab damp, NOT wet or dripping), will remove most any corrosion. simply run the swab in and out as if you were plugging it in until the swab comes out clean. May need to use more than one swab. But check for lint / foreign debris first. Good luck. Cheers.

  • ITunes and Match not playing Apple Store purchases all the way through

    Hi!  I recently noticed that several (but not all) of the m4p songs on my computer will not play all the way through, with the music ending 30 seconds to 2 minutes before the end of the song.  I decided to try Match thinking this would solve the problem (since they were purchased from Apple, Match is supposed to provide a clean copy, right?), but the songs cut off at the exact same point through Match as well.  On my computer the song ends abruptly and switches to another.  On my phone, with Match, the song either stays blank as it counts down the rest of the track or switches to another one while the information on the first song stays on screen until the point where it should have ended.
    For a specific example: Ryuichi Sakamoto's Merry Christmas Mr. Lawrence off the album 1996 is a classical m4p.  iTunes stops playing it 1:45 from the end. The stop and start times are listed correctly. It played correctly when I first purchased it from the Apple store in 2005.
    Any help fixing this problem would be appreciated. 

    I finally found some answers. I guess the problem is related to moving protected AACs to a new computer.  If anyone else is haivng this trouble, the solution can be found at:
    https://discussions.apple.com/thread/3421048?start=0&tstart=0

  • Macbook won't turn on all the way.  Please help.

    Macbook won't turn on all the way.  At first it only showed the grey apple logo, but now it says that I need to restart the computer by holding down the power button for several seconds or pressing the restart button.  I tried this already but it's not doing anything.  Please help. 

    1) Make sure you have Blackberry Desktop Manager installed.
    http://na.blackberry.com/eng/services/desktop/
    2) On your PC, go to Start > Run and copy and paste the following line exactly (meaning with the quotation marks):
    "c:\program files\common files\research in motion\apploader\loader.exe" /nojvm
    3) The Application Loader Wizard will appear -- click "Next."
    4) In the "Connection:" drop-down menu, you should see "USB-PIN: UNKNOWN". Click the "Next" button.
    5) You should then see a list of applications ready to be installed for your Blackberry. Hit Next and Finish and you are well on your way to getting your Blackberry back to life. Congrats! Just don't disconnect anything and let the lengthy process finish completely.
    NOTE: If you do not see a list of applications mentioned in step 5 and instead see the message "The Blackberry Desktop Software does not have Blackberry Device Software for the device that you have connected to the computer. Contact your wireless service provider or system administrator," then you must download Blackberry's Operating System for your carrier and device.
    http://www.blackberryfaq.com/index.php/BlackBerry_Operating_System_Downloads
    Just select the appropriate carrier and network type, select your Blackberry model from the list and download the latest version. Install this download and follow the above steps again and you should be on the right path.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Mail step should be sent to all the users in multiple condition

    hi experts,
                      I have a requirement on invoice posting.Say if invoice amount is 1000 then person A can post the invoice.
    if >= 1000 person B can post the invoice.
    If >=2000 person C can post the invoice.
                                                                      what i have did is, created a multiple condition and then based on the inv amount assigned 3 methods for invoice posting.My problem is if a person posts an invoice amount of 1000.A mail has to be sent to Person B and C informing that an amount of 1000 is posted with user id.Same for person B, ie mail should be sent to person A and C informing regarding invoice posting.Now inside the multiple condition i cannot assign mail step.Coz based on the condition it will go to a particular user for invoice posting but where as mail should be sent to all the users.So how can i achieve this??.

    Hi Priyanka,
    I am getting 1 thing why you need need multiple conditions. No need to create any multiple conditions.
    1. Create a rule using transaction PFAC. (you can use the example as Rule: 0000168).
        a. Create an function module with table parameters as ACTOR_TAB (type SWHACTOR) and AC_CONTAINER (Type
            SWCONT). You can aswell copy the FM used in 168 rule and change it. check the logic mentioned below.
        b. In PFAC transaction, go to container tab and create 2 container elements.  For amount and Mail_indicator (type should be
            same as that of the amount field in your workflow) .
    2. Use this Rule in your workflow to send mail.
    Logic:
    ""Lokale Schnittstelle:
    *"       TABLES
    *"              ACTOR_TAB STRUCTURE  SWHACTOR
    *"              AC_CONTAINER STRUCTURE  SWCONT
    *"       EXCEPTIONS
    *"              NOBODY_FOUND
      INCLUDE <CNTAIN>.
      DATA BEGIN OF ORG_OBJECT OCCURS 0.
              INCLUDE STRUCTURE SWHACTOR.
      DATA END OF ORG_OBJECT.
      DATA: BEGIN OF NEW_AC_CONTAINER OCCURS 3.
              INCLUDE STRUCTURE SWCONT.
      DATA: END OF NEW_AC_CONTAINER.
      DATA: V_AMOUNT TYPE <AMOUNT FIELD>.
      DATA: V_MAIL_INDICATOR TYPE <FLAG>.
      REFRESH: actor_tab.
    Get the org-object under consideration. AMOUNT is the container name defined in your PFTC transaction
      SWC_GET_ELEMENT AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
    Get the org-object-type and the org-object id.
      SWC_GET_ELEMENT AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
    Pass the org-object, the org-object-type and the org-object-id
    to a new container.
    The org object get a new name: ORG_AGENT.
      SWC_SET_ELEMENT NEW_AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
      SWC_SET_ELEMENT NEW_AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
    check for V_AMOUNT and V_MAIL_INDICATOR.
    if the v_amount = 1000 .'
      if  v_mail_indicator = ' '.
        actor_tab-OTYPE = 'US'  .
        actor_tab-OBJID = 'SAPUSER1'.
        append actor_tab
      else.
        actor_tab-OTYPE = 'US'  . 
        actor_tab-OBJID = 'SAPUSER2'.
        append actor_tab
        actor_tab-OTYPE = 'US'  .
        actor_tab-OBJID = 'SAPUSER3'.
        append actor_tab
      endif.
    endif.
    Similarly write the logic for other conditions.
    This way you can use same for different purposes.
    If you pass the indicator that means you are sending mail to other approvers for information.
    Revert back if u need more help.
    Regards,
    Gautham

  • How to update from Mac OS X 10.6.8 to Lion or all the way to Yosemite

    I have a MacBok Pro running Mac OS X 10.6.8. How do I update to Mac OS X 10.7 Lion? Or if I go all the way to Yosemite, do I need to buy and download every Mac OS X between 10.6.8 and Yosemite? Are there any free (and legal) Mac OS X downloads between 10.6.8 and Yosemite?

    You don't need to do any of the intervening versions but can go straight to Yosemite in the App Store.
    This will of course prevent your Mac from executing any PowerPC code. So you should check to find out if you are using any apps coded for the PowerPC processor. If you have that it will need to be upgraded to a newer version coded for the Intel processor.

Maybe you are looking for