Using Non-English text or string for Username display error message












0














I'm developing an asp.net website app that supports both English and Amharic languages. Here the problem is with amharic user registration page. when i use amharic text for user name in CreateUserWizard control and click the button to register user , error message displayed saying "The username is already in use." when i look into users table this username is not a duplicate. I am sure for this. So help me how to make it accept amharic text for the username? Help me please.










share|improve this question




















  • 1




    What is the datatype of that username column? Can you show some of your code?
    – Hans Kesting
    Nov 19 '18 at 17:24










  • The data type of the username column is NVARCHAR
    – abraham d.
    Nov 19 '18 at 18:01










  • I'm on the 4th day to solve this. I read about a COLLATION issue but i fear the membership db may not work as it is expected to work. I tried to send the username to db like this string.Format("'N{0}'",txtUsername.Text). But ot solved
    – abraham d.
    Nov 19 '18 at 18:13










  • That format will just add an N to the name. An nvarchar parameter should be enough
    – Hans Kesting
    Nov 19 '18 at 18:46






  • 1




    I don't know any Amharic, so I don't know if it is possible for a "similar" name to exist that gets confused with this name? Anyway, you should not have to 'format' a text to get it accepted
    – Hans Kesting
    Nov 19 '18 at 19:55
















0














I'm developing an asp.net website app that supports both English and Amharic languages. Here the problem is with amharic user registration page. when i use amharic text for user name in CreateUserWizard control and click the button to register user , error message displayed saying "The username is already in use." when i look into users table this username is not a duplicate. I am sure for this. So help me how to make it accept amharic text for the username? Help me please.










share|improve this question




















  • 1




    What is the datatype of that username column? Can you show some of your code?
    – Hans Kesting
    Nov 19 '18 at 17:24










  • The data type of the username column is NVARCHAR
    – abraham d.
    Nov 19 '18 at 18:01










  • I'm on the 4th day to solve this. I read about a COLLATION issue but i fear the membership db may not work as it is expected to work. I tried to send the username to db like this string.Format("'N{0}'",txtUsername.Text). But ot solved
    – abraham d.
    Nov 19 '18 at 18:13










  • That format will just add an N to the name. An nvarchar parameter should be enough
    – Hans Kesting
    Nov 19 '18 at 18:46






  • 1




    I don't know any Amharic, so I don't know if it is possible for a "similar" name to exist that gets confused with this name? Anyway, you should not have to 'format' a text to get it accepted
    – Hans Kesting
    Nov 19 '18 at 19:55














0












0








0







I'm developing an asp.net website app that supports both English and Amharic languages. Here the problem is with amharic user registration page. when i use amharic text for user name in CreateUserWizard control and click the button to register user , error message displayed saying "The username is already in use." when i look into users table this username is not a duplicate. I am sure for this. So help me how to make it accept amharic text for the username? Help me please.










share|improve this question















I'm developing an asp.net website app that supports both English and Amharic languages. Here the problem is with amharic user registration page. when i use amharic text for user name in CreateUserWizard control and click the button to register user , error message displayed saying "The username is already in use." when i look into users table this username is not a duplicate. I am sure for this. So help me how to make it accept amharic text for the username? Help me please.







asp.net membership






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 '18 at 17:06

























asked Nov 19 '18 at 16:09









abraham d.

65




65








  • 1




    What is the datatype of that username column? Can you show some of your code?
    – Hans Kesting
    Nov 19 '18 at 17:24










  • The data type of the username column is NVARCHAR
    – abraham d.
    Nov 19 '18 at 18:01










  • I'm on the 4th day to solve this. I read about a COLLATION issue but i fear the membership db may not work as it is expected to work. I tried to send the username to db like this string.Format("'N{0}'",txtUsername.Text). But ot solved
    – abraham d.
    Nov 19 '18 at 18:13










  • That format will just add an N to the name. An nvarchar parameter should be enough
    – Hans Kesting
    Nov 19 '18 at 18:46






  • 1




    I don't know any Amharic, so I don't know if it is possible for a "similar" name to exist that gets confused with this name? Anyway, you should not have to 'format' a text to get it accepted
    – Hans Kesting
    Nov 19 '18 at 19:55














  • 1




    What is the datatype of that username column? Can you show some of your code?
    – Hans Kesting
    Nov 19 '18 at 17:24










  • The data type of the username column is NVARCHAR
    – abraham d.
    Nov 19 '18 at 18:01










  • I'm on the 4th day to solve this. I read about a COLLATION issue but i fear the membership db may not work as it is expected to work. I tried to send the username to db like this string.Format("'N{0}'",txtUsername.Text). But ot solved
    – abraham d.
    Nov 19 '18 at 18:13










  • That format will just add an N to the name. An nvarchar parameter should be enough
    – Hans Kesting
    Nov 19 '18 at 18:46






  • 1




    I don't know any Amharic, so I don't know if it is possible for a "similar" name to exist that gets confused with this name? Anyway, you should not have to 'format' a text to get it accepted
    – Hans Kesting
    Nov 19 '18 at 19:55








1




1




What is the datatype of that username column? Can you show some of your code?
– Hans Kesting
Nov 19 '18 at 17:24




What is the datatype of that username column? Can you show some of your code?
– Hans Kesting
Nov 19 '18 at 17:24












The data type of the username column is NVARCHAR
– abraham d.
Nov 19 '18 at 18:01




The data type of the username column is NVARCHAR
– abraham d.
Nov 19 '18 at 18:01












I'm on the 4th day to solve this. I read about a COLLATION issue but i fear the membership db may not work as it is expected to work. I tried to send the username to db like this string.Format("'N{0}'",txtUsername.Text). But ot solved
– abraham d.
Nov 19 '18 at 18:13




I'm on the 4th day to solve this. I read about a COLLATION issue but i fear the membership db may not work as it is expected to work. I tried to send the username to db like this string.Format("'N{0}'",txtUsername.Text). But ot solved
– abraham d.
Nov 19 '18 at 18:13












That format will just add an N to the name. An nvarchar parameter should be enough
– Hans Kesting
Nov 19 '18 at 18:46




That format will just add an N to the name. An nvarchar parameter should be enough
– Hans Kesting
Nov 19 '18 at 18:46




1




1




I don't know any Amharic, so I don't know if it is possible for a "similar" name to exist that gets confused with this name? Anyway, you should not have to 'format' a text to get it accepted
– Hans Kesting
Nov 19 '18 at 19:55




I don't know any Amharic, so I don't know if it is possible for a "similar" name to exist that gets confused with this name? Anyway, you should not have to 'format' a text to get it accepted
– Hans Kesting
Nov 19 '18 at 19:55












1 Answer
1






active

oldest

votes


















-1














After a day of my post, i come with a possible solution for my question. I google alot of things on the internet and come with Encryption and Decryption. For using non English text or unicode string (that is written in a different language) as a username and also as a password ,Encrypt them at code behind inside of appropriate events during user creation and also login events before sending into a membership database. And when retrived to display them should decrypt . I found this helpful and think this can help others. Facing the same challenge. If there is another way better than this please share with me. More on this https://www.aspsnippets.com/Articles/Encrypt-and-Decrypt-QueryString-Parameter-Values-in-ASPNet-using-C-and-VBNet.aspx






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53378599%2fusing-non-english-text-or-string-for-username-display-error-message%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    -1














    After a day of my post, i come with a possible solution for my question. I google alot of things on the internet and come with Encryption and Decryption. For using non English text or unicode string (that is written in a different language) as a username and also as a password ,Encrypt them at code behind inside of appropriate events during user creation and also login events before sending into a membership database. And when retrived to display them should decrypt . I found this helpful and think this can help others. Facing the same challenge. If there is another way better than this please share with me. More on this https://www.aspsnippets.com/Articles/Encrypt-and-Decrypt-QueryString-Parameter-Values-in-ASPNet-using-C-and-VBNet.aspx






    share|improve this answer




























      -1














      After a day of my post, i come with a possible solution for my question. I google alot of things on the internet and come with Encryption and Decryption. For using non English text or unicode string (that is written in a different language) as a username and also as a password ,Encrypt them at code behind inside of appropriate events during user creation and also login events before sending into a membership database. And when retrived to display them should decrypt . I found this helpful and think this can help others. Facing the same challenge. If there is another way better than this please share with me. More on this https://www.aspsnippets.com/Articles/Encrypt-and-Decrypt-QueryString-Parameter-Values-in-ASPNet-using-C-and-VBNet.aspx






      share|improve this answer


























        -1












        -1








        -1






        After a day of my post, i come with a possible solution for my question. I google alot of things on the internet and come with Encryption and Decryption. For using non English text or unicode string (that is written in a different language) as a username and also as a password ,Encrypt them at code behind inside of appropriate events during user creation and also login events before sending into a membership database. And when retrived to display them should decrypt . I found this helpful and think this can help others. Facing the same challenge. If there is another way better than this please share with me. More on this https://www.aspsnippets.com/Articles/Encrypt-and-Decrypt-QueryString-Parameter-Values-in-ASPNet-using-C-and-VBNet.aspx






        share|improve this answer














        After a day of my post, i come with a possible solution for my question. I google alot of things on the internet and come with Encryption and Decryption. For using non English text or unicode string (that is written in a different language) as a username and also as a password ,Encrypt them at code behind inside of appropriate events during user creation and also login events before sending into a membership database. And when retrived to display them should decrypt . I found this helpful and think this can help others. Facing the same challenge. If there is another way better than this please share with me. More on this https://www.aspsnippets.com/Articles/Encrypt-and-Decrypt-QueryString-Parameter-Values-in-ASPNet-using-C-and-VBNet.aspx







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 20 '18 at 20:54

























        answered Nov 20 '18 at 20:39









        abraham d.

        65




        65






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53378599%2fusing-non-english-text-or-string-for-username-display-error-message%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

            How to fix TextFormField cause rebuild widget in Flutter