Results 1 to 6 of 6

Thread: Converting a character into ISO 646 encoding

  1. #1
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Thumbs up Converting a character into ISO 646 encoding

    Hi

    Is there any method for converting a character into a 7 bit ASCII HTML value based on ISO 646 character encoding using PHP?

    Thanks in advance for your help

    Code Exploiter

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Maybe related to this:
    http://us3.php.net/manual/en/functio...ity-decode.php
    ??
    Looks around that page for links that might be related too, I'd say.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    thanks but the function doesn't support ISO 646. Still looking about this

  4. #4
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by codeexploiter
    Is there any method for converting a character into a 7 bit ASCII HTML value based on ISO 646 character encoding using PHP?
    No built-in way, as far as I know. If you know which ISO-646 variant is in use, you could use the two-argument form of the strtr function to generate the appropriate entity or character references.

    Mike

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Ah, sorry. I stumbled upon that the other day when I was searching for another function. Thought it might at least be related.

    Is there a way to load a character table into a function?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Thumbs up

    Thanks mike for the direction, i'll check that out

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
  •