ID:2518994
 
Not a bug
BYOND Version:513.1492
Operating System:Windows 10 Pro 64-bit
Web Browser:Firefox 68.0
Applies to:DM Language
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:
The copytext proc is based on bytes, not characters. This has the effect of mangling any UTF-8 characters at the beginning or end.

Numbered Steps to Reproduce Problem:
1. Have string with UTF-8/multibyte charatcers
2. Copytext string, with the UTF-8 chars at the beginning or end
3. Get mangled characters

Code Snippet (if applicable) to Reproduce Problem:
world.log << copytext("", 1, 2)


Expected Results:


Actual Results:


Does the problem occur:
Every time? Or how often? Every time.

When does the problem NOT occur? When not using a multi-byte character.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? It didn't occur in pre-513.

Workarounds: I don't know, use 512 or just don't copytext UTF-8?

Not a bug in my opinion and will become irrelevant as developers become accustomed to working with UTF-8
Lummox JR resolved issue (Not a bug)