duanliang789262 2012-05-29 16:22
浏览 107

“ISO-8859-1”字符在“UTF-8”中不再具有可读性

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条回答 默认 最新

  • dqg95034 2012-10-23 21:48
    关注

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

    评论

报告相同问题?

悬赏问题

  • ¥20 XP系统在重新启动后进不去桌面,一直黑屏。
  • ¥15 opencv图像处理,需要四个处理结果图
  • ¥15 无线移动边缘计算系统中的系统模型
  • ¥15 深度学习中的画图问题
  • ¥15 java报错:使用mybatis plus查询一个只返回一条数据的sql,却报错返回了1000多条
  • ¥15 Python报错怎么解决
  • ¥15 simulink如何调用DLL文件
  • ¥15 关于用pyqt6的项目开发该怎么把前段后端和业务层分离
  • ¥30 线性代数的问题,我真的忘了线代的知识了
  • ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统