Guest Name: It cannot accept German umlaut.

Last post 05-15-2007, 3:45 AM by M@rco1981. 2 replies.
Sort Posts: Previous Next
  •  05-15-2007, 3:08 AM 29664

    Guest Name: It cannot accept German umlaut.

    I use a demo version of CuteChat 3.1 for CS 2007. If I want to type my anonymous name with German umlaut like öäü, then it will show a error message: "Guest Name: unsupport char 'ö'". But with the Sign-on of CS 2007 I can use the German umlaut for CuteChat.

    It should support the anoymous name with German umlaut...



  •  05-15-2007, 3:14 AM 29665 in reply to 29664

    Re: Guest Name: It cannot accept German umlaut.

     
    Please open CuteSoft_Client\CuteChat\ChatClient.js
     
    and find the following code:
     

    function SetGuestName(name)
    {
     if(name==null)throw(_SL_CreateException(TEXT("UI_CONNECTION_MissingNickName")));
     if(name.length<3)throw(_SL_CreateException(TEXT("UI_CONNECTION_ShortNickName")));
     if(name.length>12)throw(_SL_CreateException(TEXT("UI_CONNECTION_LongNickName")));
     
     for(var i=0;i<name.length;i++)
     {
      var c=name.charCodeAt(i);
      if(c>256)
       continue;
      if(c>=48 && c<=57)
       continue;
      if(c>=65 && c<=90)
       continue;
      if(c>=97 && c<=122)
       continue;
      throw(_SL_CreateException("unsupport char '"+name.charAt(i)+"'"));
     }

     chatclient.guestname=name;
    }

     
    And change it to:
     
     
    function SetGuestName(name)
    {
     if(name==null)throw(_SL_CreateException(TEXT("UI_CONNECTION_MissingNickName")));
     if(name.length<3)throw(_SL_CreateException(TEXT("UI_CONNECTION_ShortNickName")));
     if(name.length>12)throw(_SL_CreateException(TEXT("UI_CONNECTION_LongNickName")));
     chatclient.guestname=name;
    }

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-15-2007, 3:45 AM 29668 in reply to 29665

    Re: Guest Name: It cannot accept German umlaut.

    Adam,

    Thank you for your advice!

    With Firefox 2.0 und IE 7.0 I can use the German umlaut well. But the browser Opera cannot still use this umlaut... I think, that Opera execute a flash UI...
View as RSS news feed in XML