乱码修复
UpBox优盒工具箱,免费在线乱码修复:把「UTF-8 被当 Latin-1 显示」这类乱码贴进来,自动尝试两种反向解码并按中文占比给出可信度,日志、接口返回、CSV 里的乱码都能试一把。
无需注册 · 数据不上传No sign-up · nothing uploaded
乱码原文Garbled text
最常见的一类是 UTF-8 字节被当 Latin-1 或 Windows-1252 显示,于是中文变成「ä½」这种组合;另一种是文件本身是 Latin-1 却被按 UTF-8 读。工具会两种都试,按中文占比排出可信度
可能的结果Candidates
只处理「字节顺序没错、只是解码时用错了编码」这一类;如果是文件传输被截断、编码表本身就是 GBK 与 Big5 错配,本工具修不回来,需要按原始来源重新导出
工具介绍
日志里看到「ä½」,接口返回一串「ÃÂ」,第一反应是数据坏了;其实字节完好,只是解码时选错了编码表。 Seeing "ä½" in a log or a wall of "ÃÂ" from an API looks like corrupted data, but the bytes are usually intact and only the wrong table was used to decode them.
把这段乱码贴过来,工具会正反两个方向各试一次,谁读起来更像正常中文就排在前面。 Paste the garbled text and the tool tries both directions, putting the reading that looks most like real text first.
- 双向尝试Both directions
- 可信度排序Ranked by plausibility
- 中文占比CJK share
- 一键复制Copy result
使用说明
- 贴乱码。Paste the garbled text.
- 看候选结果。Read the candidates.
- 选最像的一条。Pick the best one.
- 复制回去替换。Copy it back.