Hello! I imported a po file with some Spanish translations. The strings with accent characters in them, e.g. "Descripción", are not showing up on the screen. Instead, those are just empty areas where the strings should be. However, words without accents, e.g. "Estado", appear fine.

Here is one of the misbehaving strings as defined in the po file:

#: field:body:business_directory_listing:label
msgctxt "body:business_directory_listing:label"
msgid "Description"
msgstr "Descripción"

More clues:
- our database is utf8-formated
- when importing the po, I stepped through with a debugger and all strings are written to the database fine, including the ones with accents.
- my searches of both drupal.org and google on this particular issue have come up empty

Does anyone know what the problem is? Thank you!

Regards,
Bill Shaouy

Comments

shaouy’s picture

I solved it!

I discovered that my .po file was saved in ANSI format. I converted it to UTF-8 format and re-imported, and that solved the problem.