Automattic / underscores.me

https://underscores.me
GNU General Public License v2.0
210 stars 118 forks source link

UTF files #17

Closed matsaukeo closed 10 years ago

matsaukeo commented 11 years ago

Firstly - I just wanted to say thanks for underscores, I love it! Secondly sorry if this doesn't make sense - it's right at the edge of my knowledge and I've been googling this for an hour and it still makes little sense.

If I edit page.php and paste in some text using an editor I get funny characters instead of apostrophes.

Wordpress is set to utf8 and I can confirm that that meta tag is in there. The response header is Content-Type text/html; charset=UTF-8.

The only thing not set to php is the actual php file itself. When I edit this it says it is saved as ANSI. Re-saving as utf8 fixes.

So if the file should be utf8 shouldn't the files I download from your generator be utf8? Or am I missing something.

Thanks again

obenland commented 10 years ago

This might be caused by a stray setting in your code editor.

matsaukeo commented 10 years ago

Thanks for the reply. I used to have this issue (years ago) with an old editor and swapped to one that specifically lets me open up files without changing the encoding. I checked my setting and it should be leaving them well alone. Next time I use underscores I'll keep an eye on this. The fact no one else seems to have the issue probably means that it's something I'm doing! Feel free to close this!