encoding - Writing PHP in Notepad++, and using Spanish letters? -


i don't - encoding should use? i've been using ansi, when save document, spanish letters converted illegible markings.

any suggestions?

in general, document, should use utf-8 without bom. (the exception documents targeting asian countries more efficiently stored in utf-16).

you need make sure that:

  • it doesn't transcoded en-route
  • any database data stored in utf-8 aware
  • any <meta> element in html document states encoding states correct encoding. (if document intended viewing file system instead of on http add such element)
  • the http headers state document utf-8

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -