The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Malformed UTF-8

Discussion in 'General Discussion' started by DigiCrime, Sep 30, 2005.

  1. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    Dont know if its a bug or not but I noticed this when I went to change the root pass

    /scripts/realchpass root somepasswordxxx
    Malformed UTF-8 character (overflow at 0x99f70fab, byte 0x23, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0x816efe6, byte 0x11, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0x9477df3c, byte 0x7d, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0xd41444a2, byte 0x4e, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0xd824ec66, byte 0xa2, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0xde180360, byte 0x77, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0xde3f23cb, byte 0x29, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0xecbd9dba, byte 0x6d, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0x94d1ba7e, byte 0xe2, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0xc67e1047, byte 0x9f, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0x709bfcbb, byte 0x02, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0x9d3d9a29, byte 0x66, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0xbc50706b, byte 0xf0, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0x8d8aed3d, byte 0x37, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Malformed UTF-8 character (overflow at 0xd10923b0, byte 0xaf, after start byte 0xff) in substitution (s///) at /scripts/realchpass line 52.
    Changing password for root
    Password for root has been changed

    But, change it to this
    env LANG=C /scripts/realchpass root somepasxxx
    Changing password for root
    Password for root has been changed

    Error goes away :cool:
     
  2. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    what OS/Version are you running?
     
  3. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    Think this was on mostly CentOS 3.5
     
  4. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    thats odd, not sure if this matters but for some reason a little voice in the back of my head wants me to tell you to paste me your /etc/sysconfig/i18n file.
     
  5. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    Code:
    LANG="en_US.UTF-8"  SUPPORTED="en_US.UTF-8:en_US:en"  SYSFONT="latarcyrheb-sun16"  
     
  6. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Well it looks right. Compared it to ours and we do not have this issue.

    When you get the malformed error, are you using any special charactors in the password? Not that we want to know the password, but if you try a test with a password without special charactors does it work?
     
  7. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    A-Z lower and capital case
     
  8. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    BEGIN {
    $ENV{'LANG'} = 'C';
    push(@INC,'/scripts');
    }


    Weird, /scripts/realchpass already sets the LANG to C when it starts.. what version of perl are you using? perl -v
     
  9. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    This is perl, v5.8.0 built for i386-linux-thread-multi
    (with 1 registered patch, see perl -V for more detail)
     
  10. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    i'm running 5.8.4 on my centos 3.5 install, try bumping up your perl version using the installer from layer1?
     
Loading...

Share This Page