RobertHeim / phpbb-ext-topictags

phpBB 3.3 extension, that adds the ability to tag topics with key words.
GNU General Public License v2.0
29 stars 19 forks source link

Non-english tags don't work after submitting #89

Open KotM opened 7 years ago

KotM commented 7 years ago

I've modified regex to support Cyrillic symbols: /^[\- a-zа-я0-9]{3,30}$/i.

When I'm trying to specify russian tags (e.g. тест), it seems to be working: no errors on UI. But on topic submit the following errors occurred:

  1. Board locale suddenly switched to English;
  2. The following error displayed: The following tags are invalid: тест.

phpBB 3.2.0, table collation is utf8_bin.

RobertHeim commented 7 years ago

Did you try this on a clean installation of 3.2.0 or do you have other extensions installed?

RobertHeim commented 7 years ago

and which version of the extension did you use?

KotM commented 7 years ago

I have much extensions installed right now. I can try to check it later on clean installation, tomorrow evening. I have latest extension version installed from GitHub (downloaded 3-5 hours earlier).

KotM commented 7 years ago

The same isue on clean board installation. I'm pretty sure it is related to php operations with utf8 and other codepages. Some addons sometime has an issue with storing input Cyrillic data as "?????" values in database. I don't know how to fix it, but sure it is known issue which should have much suggestions in kb.

wcz-txp commented 7 years ago

Hi, I had the same problem on a 3.1 installation with Cyrillics and German umlauts. /^[\- üäößa-z0-9а-я]{3,30}$/iu adding u helped me out, but to have all unicode letters \p{L} should be used, however I couldn't get it to work.