coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: joseibz on March 31, 2006, 10:44:44 PM

Title: display data problems
Post by: joseibz on March 31, 2006, 10:44:44 PM
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.
Title: Re: display data problems
Post by: Joachim Müller on April 01, 2006, 07:09:42 AM
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"? ::)
Title: Re: display data problems
Post by: joseibz on April 02, 2006, 01:14:55 PM
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
Title: Re: display data problems
Post by: Nibbler on April 02, 2006, 02:30:15 PM
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()