Fierabras
Emperor
- Joined
- Dec 26, 2006
- Messages
- 1,120
I'm trying to set the name of a city through Python like:
but in the dll the special characters are removed again:
and I end up with the name "Tenochtitlx225;n" and not "Tenochtitlán"
Is there a way around this without making a new dll? Python will only accept ASCII and the only way I got it working is by retrieving the city name from XML, parsed through CyTranslator(), which does work
Code:
city.setName("Tenochtitl&x225;n", False)
but in the dll the special characters are removed again:
Code:
void CvCity::setName(const wchar* szNewValue, bool bFound)
{
CvWString szName(szNewValue);
gDLL->stripSpecialCharacters(szName);
and I end up with the name "Tenochtitlx225;n" and not "Tenochtitlán"
Is there a way around this without making a new dll? Python will only accept ASCII and the only way I got it working is by retrieving the city name from XML, parsed through CyTranslator(), which does work