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

    评论

报告相同问题?

悬赏问题

  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效