Author Topic: How to copy national characters into Notepad++?  (Read 1044 times)

Offline Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,217
  • Reputation: +28/-1
    • View Profile
How to copy national characters into Notepad++?
« on: August 27, 2011, 04:14:09 AM »
I have a lame problem, I want to create an array with a list of languages (in native language) but... when I try to copy it not all national characters/accents are copied.

Like this: Español | Français | Italiano | Deutsch | Português | Русский | Polski | Română | Čeština | Ελληνικά | Türkçe | 英汉词典 | 英和辞書 | 영-한 사전 | قاموس إنجليزي - عربي
Is copied as: Espanol | Français | Italiano | Deutsch | Portugues | ??????? | Polski | Română | Čeština | ???????? | Türkçe | ???? | ???? | ?-? ?? | ????? ??????? - ????

I don't mind lack of the multibyte characters (chinese, japanese, arabic, etc), but I would like to have all latin ones...

Offline Marek

  • Level 18
  • *
  • Posts: 177
  • Reputation: +7/-0
  • XHTML, CSS, JS, PHP and MySQL are my pantheon.
    • View Profile
Re: How to copy national characters into Notepad++?
« Reply #1 on: August 27, 2011, 12:17:50 PM »
Have you checked what encoding is set in the document? In Notepad++ you can set the encoding for the current document in one of the menus. Presumably you'd need something like UTF-8 to display all the unicode characters.

Offline Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,217
  • Reputation: +28/-1
    • View Profile
Re: How to copy national characters into Notepad++?
« Reply #2 on: August 29, 2011, 05:38:23 AM »
But it's for php file (array with the list of language names). Do I need to change encoding for PHP file? Will it even be parsed properly by Apache then?

How they made it for other websites? Like Facebook has the language selection or many games have flags on top with properly displayed language names, how they added it to the code?

Offline jack13580

  • Level 7
  • *
  • Posts: 35
  • Reputation: +0/-0
    • View Profile
Re: How to copy national characters into Notepad++?
« Reply #3 on: August 29, 2011, 10:04:51 PM »
files with whatever file name are normally saved as ANSII and nead to save them as UTF8 it wont change how its parsed but wll make it possile to use characters that are not english and it is perminent change unless saved in text editor as something else

Offline Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,217
  • Reputation: +28/-1
    • View Profile
Re: How to copy national characters into Notepad++?
« Reply #4 on: August 30, 2011, 03:55:40 PM »
I got it. You have to change encoding to UTF-8 before you paste the string, then you can change it back to ANSII.

Thanks.

Offline jack13580

  • Level 7
  • *
  • Posts: 35
  • Reputation: +0/-0
    • View Profile
Re: How to copy national characters into Notepad++?
« Reply #5 on: August 30, 2011, 10:19:34 PM »
no t has to stay as utf8 it wont change the parsing it will parce the same the only thing thats different is that you get to use more then just english characters

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal