Keyword

[SOLVED] Extrafields - Greek Words

More
7 years 11 months ago #155608 by John
Extrafields - Greek Words was created by John
Hello,
When i write Greek words in extrafields they are saved as "\u03a4\u03cc\u03c3\u03b1" in the database (\u03a4\u03cc\u03c3\u03b1 = Τόσα).
Only in the extra_fields table in the extra_fields_search are saved in Greek characters.
In Joomla frontend - backend they are displayed correctly but i need to access them from other modules/componets that gives me the "\u03a4\u03cc\u03c3\u03b1".

Is it supposed to happen and save them like that or my installation has issues?
If yes is there a way to "translate" them back to Greek when i use them out of K2?

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
7 years 11 months ago #155612 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Extrafields - Greek Words
Hello John.

It is normal, nothing wrong with your installation.
The extrafield data is encoded in json format so all the unicode characters are converted to \uxxxx sequences. In order to to "translate" them back to Greek you need to decode the data json_decode().

php.net/manual/en/function.json-decode.php

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #155616 by John
Replied by John on topic Extrafields - Greek Words
OK
Thank you Teo

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum