Problems with UTF8 and pre-association

Added by David Dixon over 9 years ago

I've been using pre-association for a while with great success. This term, however, I have student names with ñ, á, é, and ó and even one with ä. However, no matter what I do, I can't seem to get csvreader/amc to render them correctly. ä and é print as à plus a symbol (Euro and copyright, respectively). ñ, á, and é cause a missing $ error while compiling the latex. Your example shows names with accents - how do you get it to work?


Replies (2)

RE: Problems with UTF8 and pre-association - Added by Alexis Bienvenüe over 9 years ago

It seems that your students list is UTF8 encoded, and your source file is declared as latin-1 or similar. Try to change the source file encoding (and the inputenc directive) to UTF8.
Send us a minimal working example (LaTeX source file and csv file) if you need some more help.

RE: Problems with UTF8 and pre-association - Added by David Dixon over 9 years ago

Yes, my mistake. Or Lyx's mistake. I had to export to latex to find out that, even though I give utf8 as an argument to the document class, Lyx assumes latin1 for inputenc. I finally found a place where the argument to inputenc can be set, and that solves it. Thanks!

(1-2/2)