change document code to euc for latex