(charset)
| 157 | * @returns {string} |
| 158 | */ |
| 159 | export function getEncodingName(charset) { |
| 160 | if (!charset) { |
| 161 | charset = settings.value.defaultFileEncoding; |
| 162 | } |
| 163 | |
| 164 | if (charset === "auto") charset = "UTF-8"; |
| 165 | |
| 166 | return getEncoding(charset).name; |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Decodes arrayBuffer to String according given encoding type |
no test coverage detected