Truncation on Chinese Characters

Issue: We are trying insert values into the DB. The values contain few Chinese characters. The Chinese characters length is exceeding the defined length and is failing.

How do we truncate the Chinese characters to a defined length?
Any java service or utility services or suggestions.

pub.string.substring

is this only an issue for Chinese characters?
what’s the encoding you are using?