UTF8 ubuntu problem

Discussion in 'HOWTO-Related Questions' started by gzero, Nov 22, 2006.

  1. gzero

    gzero New Member

    I have posted regarding this problem previously in the ISPConfig section but because it has nothing to do with ISPConfig ill post it here.

    I've installed the "The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake)" on one of my servers together with ISPConfig. On one of the sites I have Drupal running with a fileshare module. I would like those users to upload files via drupal to share with others, but i would also like to provide the option to these users to upload files via FTP. Now when users try to upload files via Drupal it works and they are able to download without problems but when I connect with FTP to this directory the text is showing strange characters ie: périphériques

    When i create directory's with FTP they will show correctly in FTP client but within Drupal i cannot enter them because they have strange characters.

    I know Drupal 4.7 is completely UTF-8 so the directory's created with Drupal should also be UTF-8 and the locale of Dapper is also UTF-8 (LANG=en_US.UTF-8). So this should work or am i not getting it?

    Another problem I am having is when i try to create directory's or files with special characters "Périphériques" it doesn't display them correctly. I thought UTF-8 should solve this issue completely?

    Hope somebody here has a answer to these problems because it really driving me crazy.


  2. falko

    falko Super Moderator ISPConfig Developer

    I'm not sure, but maybe
    dpkg-reconfigure locales
  3. tycho

    tycho New Member

    It seems to me that you will have to add the french UTF8 string to
    before doing dpkg-reconfigure locales.
  4. gzero

    gzero New Member

    I added it and all other locales and after that run reconfigure.
    Now I should be able to select all locales which i tried. Still it doesnt work with UTF8 selected. I gave up on UTF8 and are now working with iso charset again.

    To bad but thanks for helping!

  5. tycho

    tycho New Member

    I'd like to know if it is actually working with the iso charset, because if it does, I think maybe your assumption that it should work with UTF might be wrong. Thast is, in UBUNTU. This goes for Squirrelmail too. It should work fine with UTF8 too (and it does, as long as you're english), but no such luck in other locales. Had to revert to ISO charsets.
    Since I spotted more issues regarding locales in Ubuntu, and not being native English, these things are of great importance to me. Like to hear from you again.

  6. Novacom

    Novacom New Member

    Hi Tycho,

    I stumbled on this problem on my new ISP Config install. I choosed french in the shell setup. Different server (now with Ubuntu, fr_CA UTF8) The first symptom was the IP shared page not showing the 'é' and 'è' correctly...

    My initial test server was perfectly ok, squirrelmail ok and was setup on debian sarge in en_CA ISO-8859-1. All my french "accent" were ok. And the shell setup was done in english.

    I will do some tests and post back my results...

  7. till

    till Super Moderator Staff Member ISPConfig Developer

    I had a similar problem with another CMS system, please edit your apache2.conf file and enable the line:

    AddDefaultCharset ISO-8859-1

    Then restart apache.
  8. Novacom

    Novacom New Member

    Hey thanks Till,

    Your fix was successful in showing all the "accents" in french.


Share This Page