将utf-8字符写入文件java [英] writing utf-8 character to file java

查看:246
本文介绍了将utf-8字符写入文件java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我也在尝试使用java write()将uf-8 char写入文件中吗?

它写错了

例如:
当我写这个
ftyp3gp4?3gp4?free?k mdat?GçyÔÁè·Ôòˇ @

我得到了
?ftyp3gp4?3gp4?free?k mdat?GçyÔÁè·Ôòˇ
在文件中写

ay solution

whe i am trying too write uf-8 char to file using java write();

it write something wrong

for eg:
when i write this
ftyp3gp43gp4freek mdatGçyÔÁè·Ôòˇ@

i get
ftyp3gp43gp4freek mdatGçyÔÁè·Ôòˇ
writte in file

ay solution

推荐答案

查看此链接,这可能对您有帮助
http://www.mkyong.com /java/how-to-write-utf-8-encoded-data-into-a-file-java/ [
See this link , this may helps you
http://www.mkyong.com/java/how-to-write-utf-8-encoded-data-into-a-file-java/[^]

Thanks
--RA


这篇关于将utf-8字符写入文件java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆