R
Robert Dodier
Hello,
I would like to call seek and tell on files which contain multibyte
characters (utf8).
perldoc -f seek says that seek only considers byte offsets, not
character offsets.
How can I implement a seek-like function which takes a character
offset?
(Or does such a thing already exist in some library?)
Likewise, I need a tell function which reports character offset instead
of byte offset.
It is OK if these character seek/tell functions are slower than the
built-in byte seek/tell.
Thanks for any light you can shed on this problem.
Robert Dodier
I would like to call seek and tell on files which contain multibyte
characters (utf8).
perldoc -f seek says that seek only considers byte offsets, not
character offsets.
How can I implement a seek-like function which takes a character
offset?
(Or does such a thing already exist in some library?)
Likewise, I need a tell function which reports character offset instead
of byte offset.
It is OK if these character seek/tell functions are slower than the
built-in byte seek/tell.
Thanks for any light you can shed on this problem.
Robert Dodier