I just edited a .html file using Adobe Dreamweaver, the charset is gb2312 since it's a Chinese website, then I used TextMate to edit the file, after I save the file, it was changed into utf-8 since the version of TextMate I'm using doesn't support Chinese. Is there any way I change the charset back to gb2312?
migrated from stackoverflow.com Mar 18 '13 at 3:41
This question came from our site for professional and enthusiast programmers.
You can use Utilities -> Terminal and then sudo -s then Use the following command
Change the charset in command accordingly.
Mac has a file version system like TimeMachine. You can browse the previous versions of the file. See if mac saved the previous version of your file.