This Help forum is for issues relates to the latest release (1.7.10/11/12). For issues related to development versions please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

TOPIC: single quote replaced by its encoded form

single quote replaced by its encoded form 3 months 3 hours ago #1

  • bigwidower
  • bigwidower's Avatar
  • Offline
  • Junior
  • Posts: 137
Hi,

the sources in my gedcom files sometimes contain informations such as "Stato d'anime..."

When I import my gedcom into webtrees the single quote is replaced by ' and the source appears as "Stato d
&#039,
anime..."

I tried to encode my gedcom file with ANSI or with UTF-8 without BOM, but the result is always the same... with this
'

How can resolve this issue ?

Thanks in advance

Nathalie
webtrees v 1.7.9 for www.venarbol.net/borsodg
Hébergé par PlanetHoster
Last Edit: 3 months 3 hours ago by bigwidower.
The administrator has disabled public write access.

single quote replaced by its encoded form 3 months 2 hours ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11054
Where do you see these?

Post a screendump or a URL?
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

single quote replaced by its encoded form 3 months 2 hours ago #3

  • bigwidower
  • bigwidower's Avatar
  • Offline
  • Junior
  • Posts: 137
webtrees v 1.7.9 for www.venarbol.net/borsodg
Hébergé par PlanetHoster
Last Edit: 3 months 2 hours ago by bigwidower.
The administrator has disabled public write access.

single quote replaced by its encoded form 3 months 2 hours ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11054
I'm having trouble reproducing this.

You appear to be using inline sources (rather than source records).

I tried creating a GEDCOM file containing this,

1 OCCU
2 SOUR xxx'yyy

and it works OK.

Can you provide your GEDCOM file (or a part of it)?
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

single quote replaced by its encoded form 3 months 2 hours ago #5

  • bigwidower
  • bigwidower's Avatar
  • Offline
  • Junior
  • Posts: 137
here is a part of my gedcom, with an example of the "source" field:

1 NAME Angela /TONIETTO/
2 GIVN Angela
2 SURN TONIETTO
1 SEX F
1 NICK Tel
1 OCCU Villica
1 CHR
2 DATE 27 NOV 1785
2 PLAC Borso del Grappa, Treviso, Veneto, Italia
2 SOUR Reg. parroc. di Borso / Battesimi 1700-1792 c271
1 BIRT
2 DATE 27 NOV 1785
2 PLAC Borso del Grappa, Treviso, Veneto, Italia
2 SOUR Reg. parroc. di Borso / Stato d'anime 1879-1933 p360
1 DEAT
2 DATE BEF 19 DEC 1867
1 FAMS @F9@
1 FAMC @F1@
webtrees v 1.7.9 for www.venarbol.net/borsodg
Hébergé par PlanetHoster
The administrator has disabled public write access.

single quote replaced by its encoded form 3 months 2 hours ago #6

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11054
I imported that data into a new tree on the demo server.

Works for me.

dev.webtrees.net/demo-stable/individual.php?pid=i1&ged=test

I have attached the GEDCOM file here. Perhaps somebody else can test it?

This message has an attachment file.
Please log in or register to see it.

Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

single quote replaced by its encoded form 3 months 2 hours ago #7

  • bigwidower
  • bigwidower's Avatar
  • Offline
  • Junior
  • Posts: 137
it indeed works...

I do not understand why it does not work in my tree...
webtrees v 1.7.9 for www.venarbol.net/borsodg
Hébergé par PlanetHoster
The administrator has disabled public write access.

single quote replaced by its encoded form 2 months 4 weeks ago #8

  • WGroleau
  • WGroleau's Avatar
  • Offline
  • Gold
  • Posts: 1509
Might I suggest using UTF8 and U+2019 instead of the ASCII single quote?
--
Wes Groleau
UniGen.us/
PHP 7.2.15; MySQL 5.6.40; Apache
Last Edit: 2 months 4 weeks ago by WGroleau.
The administrator has disabled public write access.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

single quote replaced by its encoded form 2 months 4 weeks ago #9

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11054
> it indeed works...
> I do not understand why it does not work in my tree...

I guess there is something different between the two GEDCOM files.

Are you able to send me the GEDCOM file that has the error? This email address is being protected from spambots. You need JavaScript enabled to view it.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

single quote replaced by its encoded form 2 months 4 weeks ago #10

  • JustCarmen
  • JustCarmen's Avatar
  • Online
  • Frequent
  • Posts: 934
I have attached the GEDCOM file here. Perhaps somebody else can test it?
I've tested it and can confirm it works.

Carmen
Designer of the JustBlack theme, the JustLight theme and the Fancy modules

Check it out at www.justcarmen.nl

webtrees 1.7.14 at www.wijzijnfamilie.nl
PHP 7.2.14

wt 2.0. (latest dev) on local testsite for theme and module development
The administrator has disabled public write access.

single quote replaced by its encoded form 2 months 4 weeks ago #11

  • bigwidower
  • bigwidower's Avatar
  • Offline
  • Junior
  • Posts: 137
I sent you the entire gedcom file by email.

Nathalie
webtrees v 1.7.9 for www.venarbol.net/borsodg
Hébergé par PlanetHoster
The administrator has disabled public write access.

single quote replaced by its encoded form 2 months 4 weeks ago #12

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11054
If I import the GEDCOM into my development server (wt 1.7.12 and 2.0), it works as expected.

Is the text being converted:

a) when the data is imported into your database
b) when the data is displayed on screen

Can you look in your database for this record - and tell me if it contains
'
or
'
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
Last Edit: 2 months 4 weeks ago by fisharebest. Reason: forum eats html entities
The administrator has disabled public write access.
Powered by Kunena Forum