Title: Python3 Unicode Issues · Issue #22 · woc-hack/tutorial · GitHub
Open Graph Title: Python3 Unicode Issues · Issue #22 · woc-hack/tutorial
X Title: Python3 Unicode Issues · Issue #22 · woc-hack/tutorial
Description: Hello! While running Unicode characters in da4 there are execution time errors for Python3. However, this should not happen as Unicode is the default for strings in Python3. An example is the following code: test = "á" That produces the ...
Open Graph Description: Hello! While running Unicode characters in da4 there are execution time errors for Python3. However, this should not happen as Unicode is the default for strings in Python3. An example is the follo...
X Description: Hello! While running Unicode characters in da4 there are execution time errors for Python3. However, this should not happen as Unicode is the default for strings in Python3. An example is the follo...
Opengraph URL: https://github.com/woc-hack/tutorial/issues/22
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python3 Unicode Issues","articleBody":"Hello!\r\n\r\nWhile running Unicode characters in `da4` there are execution time errors for Python3. However, this should not happen as Unicode is the default for strings in Python3.\r\n\r\nAn example is the following code:\r\n\r\n```\r\ntest = \"á\"\r\n```\r\n\r\nThat produces the following \"syntax error\":\r\n\r\n```\r\n File \"\u003cstdin\u003e\", line 0\r\n\r\n ^\r\nSyntaxError: 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)\r\n```\r\n\r\nI think that the error is caused due to the LANG environment variable. Running in `da4`:\r\n\r\n```\r\necho $LANG\r\n```\r\n\r\n I get that the language is `C`. However, if I run the same command in `da0` I get `en_US.UTF-8`. Therefore, if we set the language of `da4` using:\r\n\r\n```\r\nexport LANG=\"en_US.UTF-8\"\r\n```\r\n\r\nThen executing the code from above removes the error. I'm not sure if this is something that is happening in other servers or could be configured globally as a fix.","author":{"url":"https://github.com/sivanahamer","@type":"Person","name":"sivanahamer"},"datePublished":"2022-02-19T22:19:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/22/tutorial/issues/22"}
| 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:536d1371-9d5e-56d6-f27f-f0e719ce0203 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 958C:152524:6D5FED:99D279:698DF869 |
| html-safe-nonce | 28f0fc793d5749ce9c35c2053f0914ff0d0e7d1cb70e16abb93976b49581f63a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NThDOjE1MjUyNDo2RDVGRUQ6OTlEMjc5OjY5OERGODY5IiwidmlzaXRvcl9pZCI6IjYzMjg5NjczNjAxMjkyNTAzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f341d08b2acf23be699f3c88d9ead1ccdc8c2458a9ed78d95fa952c4d7480a48 |
| hovercard-subject-tag | issue:1144860289 |
| 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/woc-hack/tutorial/22/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2f27530cdb8e68c7afeb824a1e4ad561c2a51b204e7d7b00653c15dfaa2821d9/woc-hack/tutorial/issues/22 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f27530cdb8e68c7afeb824a1e4ad561c2a51b204e7d7b00653c15dfaa2821d9/woc-hack/tutorial/issues/22 |
| og:image:alt | Hello! While running Unicode characters in da4 there are execution time errors for Python3. However, this should not happen as Unicode is the default for strings in Python3. An example is the follo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sivanahamer |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae22ef6ad27c5aeb770c5acd314c5724055bb23a663877aafdaaa50ed317ba34 |
| turbo-cache-control | no-preview |
| go-import | github.com/woc-hack/tutorial git https://github.com/woc-hack/tutorial.git |
| octolytics-dimension-user_id | 54589560 |
| octolytics-dimension-user_login | woc-hack |
| octolytics-dimension-repository_id | 205082129 |
| octolytics-dimension-repository_nwo | woc-hack/tutorial |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 205082129 |
| octolytics-dimension-repository_network_root_nwo | woc-hack/tutorial |
| 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 | e545f5becd5b3ce9b429b68c3f994ad93c680ddb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width