[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master d57bb0c: Treat passed strings as raw-text when percent-escapi
Re: master d57bb0c: Treat passed strings as raw-text when percent-escaping in epg
Thu, 12 Dec 2019 16:30:12 +0100
>>>>> On Thu, 12 Dec 2019 16:19:46 +0100, Robert Pluim <address@hidden> said:
Robert> No. The string that is passed to epg--decode-percent-escape can
Robert> contain non-ASCII characters encoded as UTF-8, plus percent-escaped
Robert> representations of non-ASCII characters. In order to convert those
Robert> percent-escaped characters correctly, the string has to be treated
Robert> a unibyte array of bytes, then re-converted to multibyte by encoding
Robert> with utf-8 afterwards.
Actually, Iʼm wrong here. (encode-coding-string string 'utf-8) will
work as well, Iʼd wrongly assumed it would produce a multibyte string.