Ticket #1671 (closed bug: wontfix)
Can't encode strings with non-ASCII characters in them
Reported by: | masak | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | none | Version: | 2.4.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
In the below pir, encoding an all-ASCII string works fine, but Parrot dies on trying to translate the string "ö" to fixed_8. The error message is 'unimpl fixed_8'.
.sub _main :main .local int bin_coding, i, max, byte .local string bin_string .local pmc it, result $S0 = "OH HAI" bin_coding = find_encoding 'fixed_8' bin_string = trans_encoding $S0, bin_coding i = 0 max = length bin_string bytes_loop: if i >= max goto bytes_done byte = ord bin_string, i say byte inc i goto bytes_loop bytes_done: $S0 = unicode:"ö" bin_string = trans_encoding $S0, bin_coding .end
Attachments
Change History
Note: See
TracTickets for help on using
tickets.