mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-10 08:03:25 -05:00
6 lines
284 B
TypeScript
6 lines
284 B
TypeScript
|
// TODO: MIGRATION: Can we use TextDecoder now? https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder
|
||
|
// See http://ecmanaut.blogspot.co.uk/2006/07/encoding-decoding-utf8-in-javascript.html
|
||
|
export function decodeUtf8(text: string) {
|
||
|
return decodeURIComponent(escape(text))
|
||
|
}
|