string - Right to Left Languages in Java -
when entered
new string("<some arabic text>".getbytes(), "utf-8"); despite displayed way pasted (into eclipse editor), index 0 contained rightmost character of string.
(also, each arabic letter 2 bytes, first byte being -40 each. indicate sequence?)
i know if java compiler recognizes arabic in background of if eclipse editor reorganize arabic literals? or why debugger knew arabic, means first read letter rightmost 1 , such assigned index 0.
all text stored in writing order, first (right most) letter in arabic should stored in index 0. it's software displays strings recognize text arabic , lay out right-to-left.
also, line of code quote @ best nothing, @ worst corrupts data. encodes given unicode string bytes using system default encoding, which could anything, , pretends resulting bytes represent text in utf-8 , decodes it.
Comments
Post a Comment