RadMaskedTextBox problem with encoding

2 posts, 0 answers
  1. Rodrigo Ras
    Rodrigo Ras avatar
    1 posts
    Member since:
    Sep 2009

    Posted 14 Dec 2010 Link to this post

    Hi,

    I use RadMaskedTextBox and was working fine when I needed to change the settings of the system encoding to UTF-8 to ISO-8859-1.

    If you use UTF-8 encoding does not present the problem or
    If you remove all RadMaskedTextBox not have the problem.


    The problem happens in Internet Explorer 8 and Mozilla Firefox, Google Chrome already in the system works perfectly.


    Log Error Internet Explorer 8:


    Details of the errors of the Web page

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2;. NET CLR 2.0.50727;. NET CLR 3.5.30729;. NET CLR 3.0.30729; Media Center PC 6.0;. NET4.0C;. NET4.0; InfoPath.3)
    Stamp Date / Time: Mon, 13 Dec 2010 19:01:40 UTC


    Message: Invalid range in character set
    Line: 26
    Character: 76
    Code: 0
    URI: http://endereço.com.br/ScriptResource.axd?d=vu_KwIqaAfV9OW64BCKs1CQ1eAMk3v8Y9lx5gmdjsW_2Y1X7LOcJwe7pxr2ek9aXkQFGXlNyc1bir62R7N4gGRzjs-EiQBolW7eFkaBepkE1&t=56e9f4e3


    Message: Object expected
    Line: 167
    Char: 5
    Code: 0
    URI: http://endereço.com.br/


    line 26

    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }

    line 167

    Sys.Application.add_init(function() {
        $create(Telerik.Web.UI.RadMaskedTextBox, {"_enableOldBoxModel":false,"_focused":false,"_initialMasks":[new Telerik.Web.UI.RadDigitMaskPart(),new Telerik.Web.UI.RadDigitMaskPart(),new Telerik.Web.UI.RadDigitMaskPart(),new Telerik.Web.UI.RadLiteralMaskPart('.'),new Telerik.Web.UI.RadDigitMaskPart(),new Telerik.Web.UI.RadDigitMaskPart(),new Telerik.Web.UI.RadDigitMaskPart(),new Telerik.Web.UI.RadLiteralMaskPart('.'),new Telerik.Web.UI.RadDigitMaskPart(),new Telerik.Web.UI.RadDigitMaskPart(),new Telerik.Web.UI.RadDigitMaskPart(),new Telerik.Web.UI.RadLiteralMaskPart('-'),new Telerik.Web.UI.RadDigitMaskPart(),new Telerik.Web.UI.RadDigitMaskPart()],"_originalValue":"___.___.___-__","_shouldResetWidthInPixels":true,"clientStateFieldID":"login_ClientState","enabled":true,"styles":{HoveredStyle: ["font-family:Arial;font-size:13px;width:300px;", "riTextBox riHover text"],InvalidStyle: ["font-family:Arial;font-size:13px;width:300px;", "riTextBox riError text"],DisabledStyle: ["font-family:Arial;font-size:13px;width:300px;", "riTextBox riDisabled text"],FocusedStyle: ["font-family:Arial;font-size:13px;width:300px;", "riTextBox riFocused text"],EmptyMessageStyle: ["font-family:Arial;font-size:13px;width:300px;", "riTextBox riEmpty text"],ReadOnlyStyle: ["font-family:Arial;font-size:13px;width:300px;", "riTextBox riRead text"],EnabledStyle: ["font-family:Arial;font-size:13px;width:300px;", "riTextBox riEnabled text"]}}, null, null, $get("login"));
    });


    Setting charset:

    <?xml version="1.0" encoding="ISO-8859-1"?>
     
    <globalization requestEncoding="ISO-8859-1" responseEncoding="ISO-8859-1" culture="pt-BR" uiCulture="pt-BR" />


    RadMaskedTextBox:

    <Telerik: Mask RadMaskedTextBox ="###.###.###-##" id = "login" CssClass = "text" runat = "server"TabIndex = "1" WIDTH = "300"></ Telerik: RadMaskedTextBox>



    Anyone know any way to solve the problem?

    Thanks,
  2. Martin
    Admin
    Martin avatar
    833 posts

    Posted 17 Dec 2010 Link to this post

    Hello Rodrigo Ras,

    I tried to reproduce the issue locally, but without success. Attached to this message is a small sample that works as expected on my side. Please review it and let me know how it goes.

    Best wishes,
    Martin
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top