0

I am trying to save this object to Parse.com database:

$zastavka = ParseObject::create("Zastavky");
$zastavka->set("nazov", "Bánová, Colnica");
$zastavka->save();  

But I get "Fatal error: Uncaught exception 'Parse\ParseException'..." since it looks like Parse.com is not able to handle diacritic in Strings. Is there any other way around? I need to have names of various streets in the database, therefore it is not acceptable to remove diacritic :/

andrejbroncek
  • 421
  • 5
  • 17

1 Answers1

0

Since those are special characters, I'm thinking that you'll have to use their character codes instead of the actual characters. Below are unicode codes.

You will need to use these codes along with the solution found here. Hope that helps you!

  • á --- \u00E1
  • é --- \u00E9
  • í --- \u00ED
  • ó --- \u00F3
  • ú --- \u00FA
  • ý --- \u00FD
  • ô --- \u00F4
  • ľ --- \u013E
  • š --- \u0161
  • č --- \u010D
  • ť --- \u0165
  • ž --- \u017E
Community
  • 1
  • 1
Dehli
  • 5,950
  • 5
  • 29
  • 44