简体   繁体   中英

using java to read unicode delimited files

I have checked encoding table, I think is delimiter is this one ¶ which is " 0xc2 0xb6 " in UTF-8

how should I process this file? (use delimiter to separate fields and read the field value in string array)

Below is the Sample data:

Field 1þ¶þDescriptionþ¶þField 2þ¶þField 3þ¶

尝试这个:

String[] field = line.replace("þ", "").split("¶");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM