PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
problem displaying special characters

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions
View previous topic :: View next topic  
Author Message
bhakti.thakkar



Joined: 14 Jul 2007
Posts: 2

PostPosted: Thu Jul 03, 2008 9:27 am    Post subject: problem displaying special characters Reply with quote

Hi all,
i am using MSSQL + pear + PHP Version 5.2.3 . the problem is displaying some characters. i have multiple assent coming in from different languages. So i am using htmlentities() to display the characters rightly. Also i have added
Code:

header('Content-type: text/html; charset=utf-8');


and
Code:
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

on my page. but the problem is while displaying " ' ". if from the DB there is a field which has for e.g

Name_VC =htmlentities("Robert Wilsonís ");
with or without htmlentities it displayes Robert Wilson?s

how can i eliminate this problem.

Thanks
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Fri Jul 04, 2008 2:01 pm    Post subject: Reply with quote

Either htmlentities() with the correct $charset parameter (=> manual) or utf8_encode() should help you.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement