1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

dbcs to unicode

Discussion in 'C#' started by Weel, Sep 25, 2006.

  1. #1
    Hi,

    Given the code of a character in format "&#xxx;&#xxx;" where "xxx" is some 3 digit decimal number, how to convert the code in format "&#xxxxx;" for the same character where "xxxxx" is a 5 digit decimal number.

    Do you know how to do this within an ASP page?

    Thanks a lot in advance.
     
    Weel, Sep 25, 2006 IP
  2. shaileshk

    shaileshk Well-Known Member

    Messages:
    455
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #2
    i cant get you pls explain in details

    you code is "&#xxx;&#xxx;" ie. &#123 ,&#124 ,you want to convert &#00123 , &#00124

    m i right !
     
    shaileshk, Sep 26, 2006 IP
  3. Weel

    Weel Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you.

    The first one is "&#xxx;&#xxx;", the second one is "&#xxxxx;"
    The first code is double byte (you can see there are two "&#xxx;"s in side it), the second is unicode. Don't try to find any relationship bytween the numbers in the two codes.

    There is an API function for such job but we cannot use API in VBScript in ASP.
     
    Weel, Sep 26, 2006 IP