Truncating Strings by Bytes

后端 未结 13 1701
醉酒成梦
醉酒成梦 2021-02-06 04:21

I create the following for truncating a string in java to a new string with a given number of bytes.

        String truncatedValue = \"\";
        String curren         


        
13条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-06 04:33

    Second Approach here works good http://www.jroller.com/holy/entry/truncating_utf_string_to_the

提交回复
热议问题