A Unicode Dilemma

Last post 11-05-2008, 5:42 AM by baigent. 1 replies.
Sort Posts: Previous Next
  •  11-05-2008, 2:31 AM 45401

    A Unicode Dilemma

    We've got a unicode Dilemma.
     
    When we use the WYSIWYG editor to submit Unicode values into the database such as

    فرمی با پرسشهای متعددی جهت تکميل در اختيارتان قرار ميگيرد. ما به تمام اطلاعات نياز داريم. درصورت نياز ميتوانيم در پر کردن اين فرم ياريتان کنيم.
     
    We get it going into our database fine and displaying fine in Classic ASP. But when we load this back into the editor we get the following
     
    فرمی با پرسشهای متعددی جهت تکميل در اختيارتان قرار ميگيرد. ما به تمام اطلاعات نياز داريم. درصورت نياز ميتوانيم در پر کردن اين فرم ياريتان کنيم.
     
    Have you experienced this before and if so what can we do to overcome this?
  •  11-05-2008, 5:42 AM 45410 in reply to 45401

    Re: A Unicode Dilemma

    Resolved by doing the following
     
    Added Response.CodePage = 65001 to the top of the page.
     
    In the SQL update used N in the update statement.
     
    e.g
     
    UPDATE dbtable Set dbfield = N'THIS IS UNICODETEXTFROMEDITOR'
View as RSS news feed in XML