User Real name i18n

Discussion in 'Installation/Configuration' started by virgisz, Jan 28, 2007.

  1. virgisz

    virgisz New Member

    Hi for all,

    I have a problem with User & Email Real name field. If I try to add new user with non Latin only letters (in my case lithuanian letters) the following error occurred:
    Field: Real Name
    Only the following signs are allowed: a-z A-Z 0-9 - _ .

    And following record in /home/admispconfig/ispconfig/ispconfig.log appears
    27.01.2007 - 18:37:17 => DEBUG - <b>Field: Real Name</b><br>Only the following signs are allowed: a-z A-Z 0-9 - _

    It is normal or followed by my bad ISPConfig configuration?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig checks the username with the following regular expression:

    The \w switch should allow all local characters as long as your linux locale is installed correctly. The error message is just talking about a-z to simplify it for the en user that dont know regex :)
     
  3. virgisz

    virgisz New Member

    I don't understand such expression :(, but I thing my problem is
    Code:
    LANG=lt_LT.UTF-8
    linux locacle and
    Code:
    $go_info["theme"]["charset"] = "iso-8859-13";
    in my box /home/admispconfig/ispconfig/lib/config.inc.php.

    Input in form goes as iso-8859-13, but text does not math system locale lt_LT.UTF-8.

    Am I right?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, this might be the problem.
     
  5. virgisz

    virgisz New Member

    Thanks till,

    I has experimented with utf-8 encoding in ISPConfig, but here is two problems. The first is small. Left frame (folders tree) in control panel does not displays right without manual changing page encoding to utf-8. The second is serious for me. Salutatory Email's goes corupted if I use not only Basic Latin characters like ą, ž, ė ... I am read about PHP isues with utf-8 encoding.

    No I will try to change linux locele to iso-8859-13 and put report here.
     
  6. azorman

    azorman New Member

    I'm having the same problem on Ubuntu 6.10

    root@nixsrv:/home/jdm# locale
    LANG=pt_PT.ISO-8859-1
    LANGUAGE=pt:pt_BR:en
    LC_CTYPE="pt_PT.ISO-8859-1"
    LC_NUMERIC="pt_PT.ISO-8859-1"
    LC_TIME="pt_PT.ISO-8859-1"
    LC_COLLATE="pt_PT.ISO-8859-1"
    LC_MONETARY="pt_PT.ISO-8859-1"
    LC_MESSAGES="pt_PT.ISO-8859-1"
    LC_PAPER="pt_PT.ISO-8859-1"
    LC_NAME="pt_PT.ISO-8859-1"
    LC_ADDRESS="pt_PT.ISO-8859-1"
    LC_TELEPHONE="pt_PT.ISO-8859-1"
    LC_MEASUREMENT="pt_PT.ISO-8859-1"
    LC_IDENTIFICATION="pt_PT.ISO-8859-1"
    LC_ALL=

    cat /home/admispconfig/ispconfig/lib/config.inc.php |grep char
    $go_info["server"]["salutatory_email_charset"] = 'iso-8859-1'; // possible values are iso-8859-1, iso-8859-2, ..., us-ascii, koi8-r (Russian), ...; if no charset is specified, unknown-8bit is assumed.
    $go_info["theme"]["charset"] = "iso-8859-1";

    root@nixsrv:/home/jdm# cat /etc/environment
    PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
    LANG="pt_PT.ISO-8859-1"
    LANGUAGE="pt:pt_BR:en"

    root@nixsrv:/home/jdm# env |grep LANG
    LANG=pt_PT.ISO-8859-1
    LANGUAGE=pt:pt_BR:en

    I even added
    AddCharset ISO-8859-1 .iso8859-1 .latin1
    AddDefaultCharset ISO-8859-1
    to /root/ispconfig/httpd/conf/httpd.conf

    ... don't know what else to look at! I have other similar applications, including some that use MySQL databases that are working fine!

    Thanks in advance for any ideas on how to solve this!
     
  7. azorman

    azorman New Member

    Solved... !

    ... don't really know how!
     

Share This Page