Results 1 to 4 of 4

Thread: UTF8 to NCR (numeric character references)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    117

    UTF8 to NCR (numeric character references)

    sir,
    how can i convert my utf8 string to numeric charachter reference (example A for A)

    raman

  2. #2
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: UTF8 to NCR (numeric character references)

    that (to me at least) make no sense
    pls provide some more information and details

  3. #3
    New Member
    Join Date
    Dec 2007
    Posts
    1

    Arrow Re: UTF8 to NCR (numeric character references)

    I have the same problem.
    I need to convert chinese characters from a form, and then store it as NCR (like & #20126;& #27954;& #20195;& #34920) to store on a database using PHP. I used htmlentities and utf8_encode and utf8_decode but it doesn't seem to work..

    You can see what I'm trying to do here:
    http://www.redminera.com/modules/news/html/chino.php

    I'd really appreciate your help.
    Thank you!

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: UTF8 to NCR (numeric character references)

    Data should be stored normalised, not encoded. If you must encode to character references, store the result in a cache table.

Posting Permissions

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



Click Here to Expand Forum to Full Width