Somebody please tell me the encoding format of this string...!!!

Discussion in 'PHP' started by Mr. Pimp, Apr 28, 2010.

  1. #1
    Hello,
    I'm having following data in php variable string i'm trying to echo :
     \u09ab\u09be\u0989\u099c \u0986\u09b9\u09ae\u09c7\u09a6 \u099a\u09cc\u09a7\u09c1\u09b0\u09c0
    Code (markup):
    OR
    \u674e\u5b5f\u9f8d
    Code (markup):
    OR
     \u0645\u0648\u0644\u0627\u0646\u0627
    Code (markup):
    Above is multilingual data.. may i please know how do i get unicode for above encodings?
    I tried mb_detect_encoding() and it keeps telling me the encoding is ASCII but i dont know how to get unicode for that.. if that is ASCII then i also tried to convert it utf8 first and then obtaining unicodes for utf8 but none worked.

    P.S. utf8 to unicode conversion function written by me works perfect. Please help:)
     
    Mr. Pimp, Apr 28, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    stripclashes()
     
    danx10, Apr 29, 2010 IP
  3. Mr. Pimp

    Mr. Pimp Active Member

    Messages:
    142
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Sorry but what is it? i couldn't find anything on google too.. please explain :)
     
    Mr. Pimp, Apr 29, 2010 IP
  4. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #4
    it looks like bangla language code or roman lang

    Regards

    alex
     
    kmap, Apr 29, 2010 IP
  5. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #5
    i think its a utf8_encode, try one w/o slash to utf8_decode()
     
    bartolay13, Apr 29, 2010 IP
  6. Mr. Pimp

    Mr. Pimp Active Member

    Messages:
    142
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #6
    utf8_decode() aint working..
    @kmap, its not bangla or roman.. those r some standard codes generated by facebook to display names in different languages in different character sets..
    facebook connect library generates standard utf8 codes for usernames... the one i'm using here, gives me \u----- kind of codes for each character. i have no idea what encoding it is..
    so please someone tell me how do i get unicode or atleast standard utf8 codes for following :
    \u09ab\u09be\u0989\u099c \u0986\u09b9\u09ae\u09c7\u09a6 \u099a\u09cc\u09a7\u09c1\u09b0\u09c0
    Code (markup):
     
    Mr. Pimp, Apr 29, 2010 IP
  7. SunShellNET

    SunShellNET Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Are you sure this is a php output ?
     
    SunShellNET, Apr 29, 2010 IP
  8. Mr. Pimp

    Mr. Pimp Active Member

    Messages:
    142
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #8
    no no.. it is coming from facebook thing i'm working on.. its all curl and stuff...
    i just wanna know how do i convert that stuff to actual readable text.
     
    Mr. Pimp, Apr 29, 2010 IP
  9. Mr. Pimp

    Mr. Pimp Active Member

    Messages:
    142
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #9
    anyone?
    does anyone know solution for this?
     
    Mr. Pimp, Apr 29, 2010 IP