function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Split a string in a given width

I came a cross with a problem when spliting a string which includes Japanese characters.  I want to break it in byte length. But subtring function returns  splited string in character length.Japanese charaters may contain 2 or 3 bytes.


Can you suggest any method to overcome this problem?


Anyone knows whether the Salesforce support Shift-JIS encoding ? I uploaded a file with Shift-JIS format. But it shows garbage characters. Can anyone help me for this?