Opened 10 years ago

#685 new enhancement

Provide a user-controllable default for internal string encodings

Reported by: rongarret Owned by:
Priority: minor Milestone:
Component: other Version: trunk
Keywords: Cc:


CCL provides user-controllable default encodings for stings that are obtained from files (*DEFAULT-FILE-CHARACTER-ENCODING*) and sockets (*DEFAULT-SOCKET-CHARACTER-ENCODING*) but not for internally generated strings. In other words, the default encoding for encode-string-to-octets and decode-string-from-octets is latin-1 and there seems to be no way to change it. (It appears that this value is stored in the internal *character-encodings* hash table under the null key.) It would be very nice to have a *DEFAULT-INTERNAL-CHARACTER-ENCODING* global that worked analogously to *DEFAULT-FILE-CHARACTER-ENCODING* and *DEFAULT-SOCKET-CHARACTER-ENCODING* as a default for encode-string-to-octets and decode-string-from-octets. And if it's not pushing my luck, I would like the initial value of this variable to be set to :UTF-8.

Change History (0)

Note: See TracTickets for help on using tickets.