z80:Directives:STRINGENCODER

From Learn @ Cemetech
Jump to: navigation, search

Sets the current string encoder to the one specified.

Syntax

   .stringencoder encoder

Allowed inputs

Uses

   .stringencoder ascii
   .echoln "é" == "?"
   
   .stringencoder utf8
   .echoln "é" == "?"
   .stringencoder "windows-1252"
   .echoln char($80) ; Displays a € sign.
   .stringencoder utf8
   .db "This will be encoded as UTF-8."

See Also