{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/AL/issues/4029","repository_url":"https://api.github.com/repos/Microsoft/AL","labels_url":"https://api.github.com/repos/Microsoft/AL/issues/4029/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/AL/issues/4029/comments","events_url":"https://api.github.com/repos/Microsoft/AL/issues/4029/events","html_url":"https://github.com/Microsoft/AL/issues/4029","id":369471477,"node_id":"MDU6SXNzdWUzNjk0NzE0Nzc=","number":4029,"title":"UPLOADINTOSTREAM encoding","user":{"login":"mortenseifert","id":26865832,"node_id":"MDQ6VXNlcjI2ODY1ODMy","avatar_url":"https://avatars3.githubusercontent.com/u/26865832?v=4","gravatar_id":"","url":"https://api.github.com/users/mortenseifert","html_url":"https://github.com/mortenseifert","followers_url":"https://api.github.com/users/mortenseifert/followers","following_url":"https://api.github.com/users/mortenseifert/following{/other_user}","gists_url":"https://api.github.com/users/mortenseifert/gists{/gist_id}","starred_url":"https://api.github.com/users/mortenseifert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mortenseifert/subscriptions","organizations_url":"https://api.github.com/users/mortenseifert/orgs","repos_url":"https://api.github.com/users/mortenseifert/repos","events_url":"https://api.github.com/users/mortenseifert/events{/privacy}","received_events_url":"https://api.github.com/users/mortenseifert/received_events","type":"User","site_admin":false},"labels":[{"id":488757971,"node_id":"MDU6TGFiZWw0ODg3NTc5NzE=","url":"https://api.github.com/repos/Microsoft/AL/labels/input-needed","name":"input-needed","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":{"login":"kalberes","id":12760483,"node_id":"MDQ6VXNlcjEyNzYwNDgz","avatar_url":"https://avatars3.githubusercontent.com/u/12760483?v=4","gravatar_id":"","url":"https://api.github.com/users/kalberes","html_url":"https://github.com/kalberes","followers_url":"https://api.github.com/users/kalberes/followers","following_url":"https://api.github.com/users/kalberes/following{/other_user}","gists_url":"https://api.github.com/users/kalberes/gists{/gist_id}","starred_url":"https://api.github.com/users/kalberes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalberes/subscriptions","organizations_url":"https://api.github.com/users/kalberes/orgs","repos_url":"https://api.github.com/users/kalberes/repos","events_url":"https://api.github.com/users/kalberes/events{/privacy}","received_events_url":"https://api.github.com/users/kalberes/received_events","type":"User","site_admin":false},"assignees":[{"login":"kalberes","id":12760483,"node_id":"MDQ6VXNlcjEyNzYwNDgz","avatar_url":"https://avatars3.githubusercontent.com/u/12760483?v=4","gravatar_id":"","url":"https://api.github.com/users/kalberes","html_url":"https://github.com/kalberes","followers_url":"https://api.github.com/users/kalberes/followers","following_url":"https://api.github.com/users/kalberes/following{/other_user}","gists_url":"https://api.github.com/users/kalberes/gists{/gist_id}","starred_url":"https://api.github.com/users/kalberes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalberes/subscriptions","organizations_url":"https://api.github.com/users/kalberes/orgs","repos_url":"https://api.github.com/users/kalberes/repos","events_url":"https://api.github.com/users/kalberes/events{/privacy}","received_events_url":"https://api.github.com/users/kalberes/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-10-12T09:29:04Z","updated_at":"2018-11-30T17:18:37Z","closed_at":"2018-11-30T17:18:37Z","author_association":"NONE","body":"When using the UPLOADINTOSTREAM I am missing the options of defining the encoding of the file, the user selects. Or perhaps I am doing something wrong?\r\n\r\nRunning BC Sandbox \r\nAL Lanaguage 0.16.26913\r\n\r\nI am defining the InStream as UTF8 encoding\r\n\r\n``TempBlob.Blob.CreateInStream(FileInStream, TextEncoding::UTF8);\r\nUploadIntoStream(TxtImportTitle,ImportFilepath,TxtImportFilter,Filename,FileInStream);``\r\n\r\nHowever, when I import the text into the database, the encoding gets messed up.\r\n\r\nWhen I open the source file as UTF-8 it looks OK. When I open the file as Windows-1252 i see the same text as gets imported into BC.\r\n\r\nSource file viewed as Windows 1252\r\n![image](https://user-images.githubusercontent.com/26865832/46860253-55dac780-ce10-11e8-9b8d-24b8bb764635.png)\r\n\r\nImported content in BC\r\n![image](https://user-images.githubusercontent.com/26865832/46860322-7b67d100-ce10-11e8-826b-f06a4b7e3ef6.png)\r\n\r\n\r\n\r\n\r\n                \r\n\r\n\r\n"}}
{"actor":{"display_login":"kalberes"}}