mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
Encode exports as UTF8 (#1404)
This commit is contained in:
@@ -128,7 +128,7 @@ namespace Bit.App.Pages
|
|||||||
fileFormat = fileFormat == "encrypted_json" ? "json" : fileFormat;
|
fileFormat = fileFormat == "encrypted_json" ? "json" : fileFormat;
|
||||||
|
|
||||||
_defaultFilename = _exportService.GetFileName(null, fileFormat);
|
_defaultFilename = _exportService.GetFileName(null, fileFormat);
|
||||||
_exportResult = Encoding.ASCII.GetBytes(data);
|
_exportResult = Encoding.UTF8.GetBytes(data);
|
||||||
|
|
||||||
if (!_deviceActionService.SaveFile(_exportResult, null, _defaultFilename, null))
|
if (!_deviceActionService.SaveFile(_exportResult, null, _defaultFilename, null))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user