display data problems display data problems
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

display data problems

Started by joseibz, March 31, 2006, 10:44:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

joseibz

im having problems displaying data from the db. im running a programm that uses coppermine db to extract info about pictures. the problem is i get the text like this:
Fotografía aérea de la Isla de Ibiza
i guess i need to do something with the data before i show it but i dont know what function will change these characters into spanish characters, eg:
Fotografía Aérea de la Isla de Ibiza
help me plz.

Joachim Müller

there's a difference in encoding then. Post a link to your coppermine page and to the page you're having issues with for details. Any particular reason for posting your support request on a board that is named "no support"? ::)

joseibz

The page is:
http://12fiesta.com/musidanza/index.php?fiesta_id=img2
i have tried several optionas as:
$description = trim(htmlentities(strip_tags(trim($descripcion,"\x7f..\xff\x0..\x1f")),ENT_QUOTES));
but i always get the same text.
All i want is to get the text with tildes.
My coppermine gallery displays the text in the format i want it, so there must be a way.
The coppermine site is:
http://12servicios.com/galerias
thx

Nibbler

Either get that page to output as UTF8 instead of ISO-8859-1 using headers or a meta tag or convert the data from the db into ISO-8859-1 on the fly using iconv or utf8_decode()