Unquotes a unicode string. Translates ascii-encoded utf string back to utf.
(source)
| 182 | |
| 183 | |
| 184 | def unquote_u(source): |
| 185 | """Unquotes a unicode string. |
| 186 | |
| 187 | Translates ascii-encoded utf string back to utf. |
| 188 | """ |
| 189 | result = unquote(source) |
| 190 | if '%u' in result: |
| 191 | result = result.replace('%u', '\\u').decode('unicode_escape') |
| 192 | return result |
| 193 | |
| 194 | |
| 195 | temp_firefox_profile_dir = None |