Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Problems with special characters  (Read 5335 times)

0 Members and 1 Guest are viewing this topic.

azism

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
    • TI99ers On-Line User Group
Problems with special characters
« 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???
« Last Edit: October 12, 2005, 08:39:31 am by Stramm »
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Problems with special characters
« Reply #1 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
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

azism

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
    • TI99ers On-Line User Group
Re: Problems with special characters
« Reply #2 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.
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Problems with special characters
« Reply #3 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
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Problems with special characters
« Reply #4 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;');

azism

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
    • TI99ers On-Line User Group
Re: Problems with special characters
« Reply #5 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!!!     :)
« Last Edit: October 11, 2005, 06:06:31 pm by azism »
Logged

Fielding

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Problems with special characters
« Reply #6 on: October 12, 2005, 04:09:21 am »

 ;D
That has fixed the problem for me.

Thanks
Fielding
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.