in reply to Re^4: Weird encoding after grabing filenames
in thread Weird encoding after grabing filenames

Because some characters are encoded the same in both ISO-8859-7 and UTF-8. So even though you program was buggy, you still happened to get some correct output.

  • Comment on Re^5: Weird encoding after grabing filenames

Replies are listed 'Best First'.
Re^6: Weird encoding after grabing filenames
by Nik on Jun 17, 2009 at 17:11 UTC
    But the data that actually got prined correctly weren't greek characters. They were data composed of english letters like "/home/nikos/public_html/data/text".

      Despite the "but", that doesn't contradict what I said. Those are characters that are encoded the same in both ISO-8859-7 and UTF-8.

      Specifically, U+0020..U+007E are encoded the same in ASCII, ISO-8859-* and UTF-8.