Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Single quotes in captions do not show up correctly
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=4712
Page 1 of 1

Author:  mtcjayne [ 29. May 2018, 04:24 ]
Post subject:  Single quotes in captions do not show up correctly

The caption
Quote:
The birds have started to come out here in Washington! Here is a beautiful relative to the bluebird/raven called a Stellar's Jay that has been visiting recently.


shows up as
Quote:
The birds have started to come out here in Washington! Here is a beautiful relative to the bluebird/raven called a Stellar’s Jay that has been visiting recently.


in my instance and I'm not seeing why.

EDIT: I've removed the XML file, and it seems the import process converts the single quotes to a fancy quote instead. I would tend to consider that to be a bug.

EDIT2: Even without any quotes at all in the IPTC data, TWG's import is still putting the escaped HTML for them into the XML files... I don't see how this is physically possible.

Author:  mtcjayne [ 29. May 2018, 05:19 ]
Post subject:  Re: Single quotes in captions do not show up correctly

Code:
iptc path/2018-04-23_00-48-48_Bh5LbONHmiV.jpg
theycallmedsp/2018-04-23_00-48-48_Bh5LbONHmiV.jpg:
 Tag      Name                 Type      Size  Value
 -------- -------------------- --------- ----  -----
 2:040    Special Instructions String      90  FBMD23000968010000395500003a7a0000e9970000eb490100baa60100cff00100c25c0200abb50200243e0300
 2:120    Caption/Abstract     String      77  Kat made homemade chili from scratch. Its the best darn chili Ive ever eaten!


Code:
<BILD><NAME>2018-04-23_00-48-48_Bh5LbONHmiV.jpg</NAME><WERT>Kat+made+homemade+chili+from+scratch.+It%C3%A2%C2%80%C2%99s+the+best+darn+chili+I%C3%A2%C2%80%C2%99ve+ever+eaten%21</WERT></BILD>


These tags that TWG are finding simply do not exist.

Even when manually removing those HTML escaped characters from the XML and refreshing the page, they are still shown.

Image

Attachments:
specialchars.PNG
specialchars.PNG [ 8.67 KiB | Viewed 6292 times ]

Author:  TinyWebGallery [ 29. May 2018, 11:50 ]
Post subject:  Re: Single quotes in captions do not show up correctly

Such things are cached. So make sure you remove the session cookie also if you manually edit the xml file and retry

So you read the captions from the IPTC only? Are they utf-8 encoded?
If yes. have you set $iptc_encoding = 'utf-8'; ?

Best, Michael

Author:  mtcjayne [ 1. Jun 2018, 02:23 ]
Post subject:  Re: Single quotes in captions do not show up correctly

TinyWebGallery wrote:
Such things are cached. So make sure you remove the session cookie also if you manually edit the xml file and retry

Thanks for the help, this is what I needed to do.

Author:  TinyWebGallery [ 1. Jun 2018, 16:54 ]
Post subject:  Re: Single quotes in captions do not show up correctly

Please note that you can delete the session cache in the administration as well and also by clicking on the bandwidth icon.

Best, Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/