'ISO-8859-1' characters no more readable in 'UTF-8'

476 Views Asked by At

I have an issue when i try to convert encoding in PHP with mb_convert_encoding function.

The main idea is to change the format of a 'CSV' file which has an 'ISO-8859-1' encoding. I want the output formatted 'CSV' be in 'UTF-8' encoding and be readable just like the input.

mb_convert_encoding gets the job done, however, when i try to open the formatted CSV with Notepad++ i get bizarre characters instead of the Greek ones which the 'ISO-8859-1' original CSV had.

Why is that?

1

There are 1 best solutions below

0
On

Notepad++ is probably opening the file as ASCII. Click Encoding -> UTF-8