I should probably mention that you need to put your character names in where it says "char1", "char2", etc, change to your realm, and change the address from eu.wowarmory.com if you're not in the EU.

It handles accents in character names thanks to the utf8_encodes.

With a little more work (and a good understanding of regular expressions) you could have it generating a table with all kinds of data.