SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    United Kingdom
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Notepad++ possible encoding issue?

    Does it present any problems if your text editor (Notepad++ in my case) insists on using ANSI encoding and keeps reverting files (any common format, HTML, CSS, PHP, etc.) to ANSI when they are opened, despite selecting the option to convert to UTF-8 without BOM and then saving them?

    Will it be a problem for php.ini, robots.txt, sitemap.xml or .htaccess? I'll have to upload all of these soon when I get server space arranged, but I think I read somewhere that at least some of these files must be UTF.

    If it is a problem, how can I get Notepad++ to play ball? (Just updated to 5.1 - problem still persists. New file/save settings are set to Windows and UTF-8 without BOM).

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    If the file only contains standard ASCII then it doesn't really hurt opening it as UTF-8 or not they are compatible. If you want it to always open as UTF-8 try adding some characters from the UTF-8 banks. For example I put these in a few of my files: … – — ‘ ’ “ ” or could just add "Iñtërnâtiônàlizætiøn" any where in a comment...something...
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    United Kingdom
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK. That's good. What about the server files?

  4. #4
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    They should be fine as long as you send them with the proper header.
    Content-Type:mime-type-here;charset=utf-8
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  5. #5
    SitePoint Enthusiast
    Join Date
    Mar 2007
    Location
    United Kingdom
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK. Thanks.

  6. #6
    SitePoint Enthusiast
    Join Date
    Jan 2006
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    I'm also trying to workaround a problem in Notepad++.

    When entering Tibetan text, it display blocks:



    ... while (most) other Unicode characters are displayed correctly.

    I tried UTF-8 and UTF-8 without BOM. Tibetan is installed on my PC (I can see Tibetan text on web pages. In fact I'm copy pasting them from the web to Notepad++ as I did with the Chinese and Itrntinliztin above).

    Any thoughts?

    Thanks!
    Attached Images Attached Images


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •