Single Unicode Character - How many Bytes?

Discussion in 'ASP General' started by Arnold Shore, Oct 4, 2003.

  1. Arnold Shore

    Arnold Shore Guest

    I've got a single Cyrillic character delivered from a db field to my script,
    which displays correctly in my UTF-8 web page. This is the "backwards P"
    which has the Unicode value of &H042F

    But when I read it for writing to a file, what I see is a 4-byte value of
    &HD0 00 AF 00 .

    Can someone explain what's going on here? Thanks, all.

    AS
     
    Arnold Shore, Oct 4, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jason Collins
    Replies:
    3
    Views:
    6,048
    Jason Collins
    Feb 18, 2004
  2. Kenneth McDonald
    Replies:
    1
    Views:
    856
    Carl Banks
    Dec 27, 2006
  3. mrby

    4-bytes or 8-bytes alignment?

    mrby, Nov 2, 2004, in forum: C Programming
    Replies:
    8
    Views:
    435
    Mark McIntyre
    Nov 2, 2004
  4. Replies:
    5
    Views:
    558
    Flash Gordon
    Apr 9, 2006
  5. Tyler
    Replies:
    1
    Views:
    977
    Robert Klemme
    Jul 29, 2011
Loading...

Share This Page