Announcement

#1 2015-02-09 10:54:12

matthys
Member
2014-04-02
188

Problem with keywords

Piwigo is set as UTF8, but these two keyword are 'seen' as the same:
Portugália Airlines (in Spanish)
Portugalia Airlines (in English)

I only see "Portugalia Airlines" as keyword.
Also when I do a search from the Administration Home, Photo, Tags, Tags selection, I see ONLY "Portugalia Airlines".
When I want to add it from the Administration Home, Photo, Tags, New tag, I get this message:
Tag "Portugália Airlines" already exists
However from the photo page itself I can still add "Portugália Airlines" as keyword, but after 'Save Settings' its gone.

What to do? Or can somebody explain how to deal with this?
I guess because of the "á" but should be no issue with UTF8, right?

http://www.vanwageningen.net/index/tags … a_airlines

Last edited by matthys (2015-02-09 10:54:35)

Offline

 

#2 2015-02-14 14:09:13

matthys
Member
2014-04-02
188

Re: Problem with keywords

I just wonder if this is a bug or not ...

Offline

 

#3 2015-02-14 14:40:50

homdax
Member
Sweden
2015-02-02
294

Re: Problem with keywords

Ehm, maybe I found a way to do it. In HTML you can use alternate coding to represent High Ascii.
If you try replacing "á" with "á" that would give you the HTML representation.

Testing... and it worked. See screenshot.

I got the Ascii from here: http://www.ascii-code.com/

Last edited by homdax (2015-02-14 14:54:33)

Offline

 

#4 2015-02-14 15:02:21

matthys
Member
2014-04-02
188

Re: Problem with keywords

Just checked and are indeed "utf8_general_ci";
    piwigo_tags        Browse Browse    Structure Structure    Search Search    Insert Insert    Empty Empty    Drop Drop    3,460    MyISAM    utf8_general_ci    318.2 KiB    -

I also check for "Portug*" in the "piwigo_tags" and it's not there, only "Portugalia Airlines".
So it seems it's a bug, as you are not able to add these utf8 keywords?
However others are there (like Schloß), so I guess it doesn't want to add "Portugália Airlines" as it 'looks' similar to "Portugalia Airlines".

Offline

 

#5 2015-02-14 15:05:00

matthys
Member
2014-04-02
188

Re: Problem with keywords

homdax wrote:

If you try replacing "á" with "á" that would give you the HTML representation.

Not really handy to write all keywords in HTML code, also not sure how Piwigo is dealing with this, as it also creates an url_name for each keyword.

Last edited by matthys (2015-02-14 15:05:53)

Offline

 

#6 2015-02-14 16:16:45

homdax
Member
Sweden
2015-02-02
294

Re: Problem with keywords

You will just have to test to see how the URL's show up.

These are web standards and the Piwigo team may or may not create an alternate way of handling this for Piwigo.

There is a difference though, I think. UTF8 handles international characters. So is "á" an international character or a combined two-stroke character. I don't really know. But while checking, I see it is: http://www.fileformat.info/info/charset/UTF-8/list.htm
Code: c3a1 : http://www.fileformat.info/info/unicode … /index.htm

UTF8 has support for it, so I am assuming this may be related to how Piwigo encodes the input in their album text fields. Still, as long as you can use character encoding with the á I am not sure it is a bug. Perhaps undocumented in any case, but not necessarily a coding error.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact