Foreign language support in TileMill
Hola!
I'm trying to make a Spanish-language map in TileMill. I can open
my shapefiles (with attribute tables in Spanish) in QGIS, but when
I open them in TileMill, I keep getting this symbol "�" when
any letter has an accent mark or there is an ñ. Any
thoughts?
Mil gracias!
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by AJ on 22 Sep, 2011 08:58 PM
TileMill cannot detect shapefile character encoding and defaults to UTF-8, which your shapefile is probably not using. You can specify the proper encoding in the "Advanced" field in the layer settings window. If you aren't sure what encoding your shapefile uses, try
encoding="CP1252"orencoding="LATIN1".Let me know if that solves your problem.
3 Posted by robint on 23 Sep, 2011 06:15 PM
Nope, neither worked...
I guess I'll have to figure out which encoding I'm using. Thanks for the tip about the "Advanced" field though, at least now I know how to change it.
I'll let you know if/when I figure it out and, of course, let me know if you have any more ideas!
Support Staff 4 Posted by Tom MacWright on 23 Sep, 2011 09:24 PM
Hey robint,
Are you seeing the symbol in labels on the map, or in the TileMill UI table too? If the former, it's possible that the font you're using for labels doesn't have accented characters.
5 Posted by robint on 24 Sep, 2011 03:48 PM
Now instead of seeing that symbol, I see a variety of substitute symbols like ú © ±
I even selected the encoding in QGIS to be CP1252 and put
encoding="CP1252"in the Advanced field in the layer settings window. When I open up the same shapefile in QGIS, there's no problem.6 Posted by robint on 24 Sep, 2011 03:51 PM
I just figured it out! In QGIS I made sure that the file was encoded using UTF-8 and then everything was fine. Problem solved. Thanks for the help!
Will White closed this discussion on 25 Sep, 2011 06:55 PM.