|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
WML/PHP Entity problem
Hi
I have built a back end system for my WAP site to enable easy addition of content. However, ehen I add items like news with apostrophes then the text is inserted into the database as 'we’re all going to the zoo tomorrow' (we're all going to the zoo tomorrow). I try to use HTML_ENTITIES_DECODE in my php, which does convert it to an apostrophe but the sourse code stays the same and so does not display in all WAP browsers. How can I remedy this? Is there a PHP function that will convert the character entities stoted in the database to their numeric entities. Thanks |
|
#2
|
||||
|
||||
|
Hi wardmaestro, wlecome to Dev Shed.
A few questions? How are you putting the text into the database in the first place - are you formatting with any php functions when inserting? What charset are you actually trying to use? What is the charset of your database? What about str_replace-ing the characters? Are you sending any charset information to the browser? eg: PHP Code:
wml
Pehaps you could investigate iconv, if you have it installed - that may help...
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ Last edited by jabba_29 : March 5th, 2006 at 06:39 PM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > WML/PHP Entity problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|