phpbb-ext-topictags icon indicating copy to clipboard operation
phpbb-ext-topictags copied to clipboard

Non-english tags don't work after submitting

Open KotM opened this issue 8 years ago • 5 comments

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.

KotM avatar Mar 27 '17 18:03 KotM

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

RobertHeim avatar Mar 27 '17 21:03 RobertHeim

and which version of the extension did you use?

RobertHeim avatar Mar 27 '17 21:03 RobertHeim

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 avatar Mar 27 '17 21:03 KotM

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.

KotM avatar Mar 28 '17 07:03 KotM

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.

wcz-txp avatar Apr 03 '17 15:04 wcz-txp