Title: Unicode conversion issue · Issue #1466 · pythonnet/pythonnet · GitHub
Open Graph Title: Unicode conversion issue · Issue #1466 · pythonnet/pythonnet
X Title: Unicode conversion issue · Issue #1466 · pythonnet/pythonnet
Description: Environment Pythonnet version: 3.0.0-preview2021-06-04 Python version: 3.8.8 Operating System: ubuntu 21.04 .NET Runtime: 5.0.300 Details Unicode characters get lost / mangled during conversion: scope.Exec("testStr = 'Nom 🍗';"); scope.Ex...
Open Graph Description: Environment Pythonnet version: 3.0.0-preview2021-06-04 Python version: 3.8.8 Operating System: ubuntu 21.04 .NET Runtime: 5.0.300 Details Unicode characters get lost / mangled during conversion: sc...
X Description: Environment Pythonnet version: 3.0.0-preview2021-06-04 Python version: 3.8.8 Operating System: ubuntu 21.04 .NET Runtime: 5.0.300 Details Unicode characters get lost / mangled during conversion: sc...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1466
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unicode conversion issue","articleBody":"### Environment\r\n\r\n- Pythonnet version: 3.0.0-preview2021-06-04\r\n- Python version: 3.8.8\r\n- Operating System: ubuntu 21.04\r\n- .NET Runtime: 5.0.300\r\n\r\n### Details\r\n\r\nUnicode characters get lost / mangled during conversion:\r\n\r\n```fsharp\r\nscope.Exec(\"testStr = 'Nom 🍗';\");\r\nscope.Exec(\"\"\"print(\"python:\", testStr);\"\"\")\r\nConsole.WriteLine($\"\"\"dotnet: {scope.Get(\"testStr\").ToString()}\"\"\");\r\n```\r\n\r\nwrites\r\n```\r\npython: Nom 🍗\r\ndotnet: Nom �\r\n```\r\n\r\n","author":{"url":"https://github.com/pkese","@type":"Person","name":"pkese"},"datePublished":"2021-06-07T20:42:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/1466/pythonnet/issues/1466"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1c96759f-c5f3-ff7b-c444-3edb2fb6ac8a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEC4:2DDF76:931D81:C3128C:69716670 |
| html-safe-nonce | bddd31b97b930444adef2f05d2b36c7051656951b57ede23aff8a45fa7ac9149 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUM0OjJEREY3Njo5MzFEODE6QzMxMjhDOjY5NzE2NjcwIiwidmlzaXRvcl9pZCI6IjQ4ODgzNzY0Mzc2OTkwNzc3NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 12d18798777e6a5a9a598c723149101e6ac9d7744453586c18efb06bcb707533 |
| hovercard-subject-tag | issue:913938831 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonnet/pythonnet/1466/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ecd3fd83e09bc8ee617f289cee1e35003f16ab2a386123897941ee8575a4eb6d/pythonnet/pythonnet/issues/1466 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ecd3fd83e09bc8ee617f289cee1e35003f16ab2a386123897941ee8575a4eb6d/pythonnet/pythonnet/issues/1466 |
| og:image:alt | Environment Pythonnet version: 3.0.0-preview2021-06-04 Python version: 3.8.8 Operating System: ubuntu 21.04 .NET Runtime: 5.0.300 Details Unicode characters get lost / mangled during conversion: sc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pkese |
| hostname | github.com |
| expected-hostname | github.com |
| None | 873364ab8c3892d45b3a7f6c012702ee84934662b47c9312d99f8b31dd9c2668 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fa6ed180534301da051f8e5cb00f3a1dfab789ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width