Can Pokemon change gender when they evolve

pokemon-x-y

My female Charmeleon evolved into a male Charizard. How is this possible?
Charmeleon was from Diamond transferred to Pokemon X.

Best Answer

Barring a bug, hack or you simply being mistaken, evolution never changes gender, nor does anything else.

Gender, IVs, ability (barring the ability swap item), and personality are set in stone on generation of a pokemon and are never deliberately changed by game code in any generation of Pokemon (though trading from Gen 1 to Gen 2 assigns previously genderless pokemon a gender based on personality value).