SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    converting from utf-8 entities to utf-8 characters

    Hi

    I'm converting from utf-8 to base64 in order to use variables in email subject fields.

    The utf-8 code i have is in entity form (e.g. "&#22363(ignore);" ) but of course if i convert this to base64 the subject will display "&#22363(ignore);" rather than the chinese character it represents.

    So how can the "&#22363(ignore);" be converted into character form within the php code to allow the base64 encoding to take place?

    Thanks for your help!

    Stu

  2. #2
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Saul

  3. #3
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you're looking for html_entity_decode.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •