I have text file that was encoded with UTF8 (for language specific characters).
I need to use RandomAccessFile to seek specific position and read from.
You aren’t going to be able to go at it this way. The seek function will position you by some number of bytes. There is no guarantee that you are aligned to a UTF-8 character boundary.