SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot asrasrasr's Avatar
    Join Date
    Apr 2009
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with HTML Special Character

    Hello Friends,

    I am facing problen to display html special character using php from mysql.

    In my database there are company name like

    AGL – Advanced Glory Logistics Group Ltd

    337 M€

    AeroRepública

    But when i dispaly thse name in php page

    This displayed like

    AGL ? Advanced Glory Logistics Group Ltd

    337 M?

    AeroRep?blica

    But when i try to dispaly company name using htmlentities they display lke

    AGL ? Advanced Glory Logistics Group Ltd

    337 M?

    AeroRepública

    what is the problem?

  2. #2
    SitePoint Zealot Mattinblack's Avatar
    Join Date
    May 2009
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by asrasrasr View Post
    Hello Friends,

    I am facing problen to display html special character using php from mysql.

    In my database there are company name like

    AGL – Advanced Glory Logistics Group Ltd

    337 M€

    AeroRepública

    But when i dispaly thse name in php page

    This displayed like

    AGL ? Advanced Glory Logistics Group Ltd

    337 M?

    AeroRep?blica

    But when i try to dispaly company name using htmlentities they display lke

    AGL ? Advanced Glory Logistics Group Ltd

    337 M?

    AeroRepública

    what is the problem?
    Probably your database is the problem. Is it set to use UTF8 character encoding?


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
  •