forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: azism on October 09, 2005, 11:44:25 pm

Title: Problems with special characters
Post by: azism on October 09, 2005, 11:44:25 pm
I have run into a problem with special characters in picture text, such as description, title, etc. For example, with a name such as O'Neil, it displays as O\'Neil. For an year, such as '98, it displays as \'98. Same with other characters such as the quote.

Any suggestions???
Title: Re: Problems with special characters
Post by: artistsinhawaii on October 10, 2005, 12:30:37 am
I run a standalone version of cpg135 and I can't duplicate this anywhere.  Both ' and " show up as typed in the titles and caption fields.

Dennis
Title: Re: Problems with special characters
Post by: azism on October 10, 2005, 01:52:43 am
I guess I didn't mention that this is the standalone 1.35 version, did I? It is. My host is running Apache/1.3.33 (Unix). I don't know if that make any difference of not, but there it is.
Title: Re: Problems with special characters
Post by: artistsinhawaii on October 10, 2005, 02:01:07 am
Hmm, try downloading a fresh copy of Cpg1.35 and copy over the files except your config.inc.php file.  And see if the problem doesn't go away.

Dennis
Title: Re: Problems with special characters
Post by: Stramm on October 10, 2005, 10:26:43 am
I haven't tested it to much... in include/init.inc.php find
Code: [Select]
$HTML_SUBST = array('&' => '&amp;', '"' => '&quot;', '<' => '&lt;', '>' => '&gt;', '%26' => '&amp;', '%22' => '&quot;', '%3C' => '&lt;', '%3E' => '&gt;');replace with
Code: [Select]
$HTML_SUBST = array('&' => '&amp;', '"' => '&quot;', '<' => '&lt;', '>' => '&gt;', '%26' => '&amp;', '%22' => '&quot;', '%3C' => '&lt;', '%3E' => '&gt;','%27' => '&#39;', "'" => '&#39;');
Title: Re: Problems with special characters
Post by: azism on October 11, 2005, 05:20:49 pm
Okay, I will give it a shot and let you know how it goes. Thanks.

Update - I have uploaded and added a couple pictures with the problem characters and they are appearing just fine. Thank you!!!     :)
Title: Re: Problems with special characters
Post by: Fielding on October 12, 2005, 04:09:21 am
 ;D
That has fixed the problem for me.

Thanks
Fielding