René's URL Explorer Experiment


Title: Cannot figure out how to print \u2019 and other character codes properly · python-escpos/python-escpos · Discussion #458 · GitHub

Open Graph Title: Cannot figure out how to print \u2019 and other character codes properly · python-escpos/python-escpos · Discussion #458

X Title: Cannot figure out how to print \u2019 and other character codes properly · python-escpos/python-escpos · Discussion #458

Description: Cannot figure out how to print \u2019 and other character codes properly

Open Graph Description: Hello, I am using data from an API and often many symbols (like apostrophes and quotations) are represented by their Unicode character codes. They always print to the terminal fine without issue, b...

X Description: Hello, I am using data from an API and often many symbols (like apostrophes and quotations) are represented by their Unicode character codes. They always print to the terminal fine without issue, b...

Opengraph URL: https://github.com/python-escpos/python-escpos/discussions/458

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Cannot figure out how to print \\u2019 and other character codes properly","text":"\u003cp dir=\"auto\"\u003eHello,\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI am using data from an API and often many symbols (like apostrophes and quotations) are represented by their Unicode character codes. They always print to the terminal fine without issue, but when I try to print to the printer it always encodes them incorrectly and spits out garbage.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI know that the docs say the input needs to be Unicode and I’m pretty sure \\u2019 is a proper Unicode character code.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI am using an Epson TM-T88IIP via USB on MacOS with the latest build of python-ecspos\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThanks in advance,\u003cbr\u003e\nJack\u003c/p\u003e","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003eHi Jack,\u003cbr\u003e\nso if you are on the newest (\u003ca href=\"https://pypi.org/project/python-escpos/3.0a8/\" rel=\"nofollow\"\u003ehttps://pypi.org/project/python-escpos/3.0a8/\u003c/a\u003e) version of python-escpos and assuming the library correctly know how to encode those characters, the last option would be that those characters are unknown to your printer.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eSome points that you could check:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eHave you set the \u003ca href=\"https://python-escpos.readthedocs.io/en/latest/api/escpos.html#escpos.escpos.Escpos\" rel=\"nofollow\"\u003eprofile\u003c/a\u003e correctly?\u003c/li\u003e\n\u003cli\u003eMaybe this profile could work: \u003ca href=\"https://mike42.me/escpos-printer-db/#profiles/TM-T88II\" rel=\"nofollow\"\u003ehttps://mike42.me/escpos-printer-db/#profiles/TM-T88II\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003eIf nothing helps, you could try to search and replace the conflicting characters or use a library such as \u003ca href=\"https://pypi.org/project/Unidecode/\" rel=\"nofollow\"\u003ehttps://pypi.org/project/Unidecode/\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e","upvoteCount":2,"url":"https://github.com/python-escpos/python-escpos/discussions/458#discussioncomment-1142635"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:6036f297-0213-dac4-a4b9-d8d7bba075ff
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-id8B1E:2E1914:132CFB3:1A01770:6A4D6F92
html-safe-nonce65ce530fd674e5a1013c3138d21862bab64dadad85ca97a33f5654a4eaeb9bf2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjFFOjJFMTkxNDoxMzJDRkIzOjFBMDE3NzA6NkE0RDZGOTIiLCJ2aXNpdG9yX2lkIjoiODM3NjQzNjUwNjg0ODIyNzIxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfbd473ba5ce19c17e2a397ac6ffa259a993962e48863e09a919edddb564dc9d5
hovercard-subject-tagdiscussion:3505255
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/python-escpos/python-escpos/458/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/a7ccc65f21b833f680676230f8463d17c0f71992e4f5a2416997a1594ad728d9/python-escpos/python-escpos/discussions/458
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a7ccc65f21b833f680676230f8463d17c0f71992e4f5a2416997a1594ad728d9/python-escpos/python-escpos/discussions/458
og:image:altHello, I am using data from an API and often many symbols (like apostrophes and quotations) are represented by their Unicode character codes. They always print to the terminal fine without issue, b...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec78260c7b3f4ac4b0356c8208537f05406a3a2d46a9ec3f735b372dcc519c39e
turbo-cache-controlno-preview
go-importgithub.com/python-escpos/python-escpos git https://github.com/python-escpos/python-escpos.git
octolytics-dimension-user_id16302939
octolytics-dimension-user_loginpython-escpos
octolytics-dimension-repository_id32363483
octolytics-dimension-repository_nwopython-escpos/python-escpos
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id32363483
octolytics-dimension-repository_network_root_nwopython-escpos/python-escpos
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release399fff412f48461d435721c009efc17ea44be72f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-escpos/python-escpos/discussions/458#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-escpos%2Fpython-escpos%2Fdiscussions%2F458
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-escpos%2Fpython-escpos%2Fdiscussions%2F458
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=python-escpos%2Fpython-escpos
Reloadhttps://github.com/python-escpos/python-escpos/discussions/458
Reloadhttps://github.com/python-escpos/python-escpos/discussions/458
Reloadhttps://github.com/python-escpos/python-escpos/discussions/458
Please reload this pagehttps://github.com/python-escpos/python-escpos/discussions/458
python-escpos https://github.com/python-escpos
python-escposhttps://github.com/python-escpos/python-escpos
Notifications https://github.com/login?return_to=%2Fpython-escpos%2Fpython-escpos
Fork 312 https://github.com/login?return_to=%2Fpython-escpos%2Fpython-escpos
Star 1.3k https://github.com/login?return_to=%2Fpython-escpos%2Fpython-escpos
Code https://github.com/python-escpos/python-escpos
Issues 63 https://github.com/python-escpos/python-escpos/issues
Pull requests 24 https://github.com/python-escpos/python-escpos/pulls
Discussions https://github.com/python-escpos/python-escpos/discussions
Actions https://github.com/python-escpos/python-escpos/actions
Projects https://github.com/python-escpos/python-escpos/projects
Security and quality 0 https://github.com/python-escpos/python-escpos/security
Insights https://github.com/python-escpos/python-escpos/pulse
Code https://github.com/python-escpos/python-escpos
Issues https://github.com/python-escpos/python-escpos/issues
Pull requests https://github.com/python-escpos/python-escpos/pulls
Discussions https://github.com/python-escpos/python-escpos/discussions
Actions https://github.com/python-escpos/python-escpos/actions
Projects https://github.com/python-escpos/python-escpos/projects
Security and quality https://github.com/python-escpos/python-escpos/security
Insights https://github.com/python-escpos/python-escpos/pulse
Answered https://github.com/python-escpos/python-escpos/discussions/458#discussioncomment-1142635
patkanhttps://github.com/patkan
jjaacckk https://github.com/jjaacckk
Q&Ahttps://github.com/python-escpos/python-escpos/discussions/categories/q-a
Cannot figure out how to print \u2019 and other character codes properly https://github.com/python-escpos/python-escpos/discussions/458#top
jjaacckk https://github.com/jjaacckk
Answered https://github.com/python-escpos/python-escpos/discussions/458#discussioncomment-1142635
patkanhttps://github.com/patkan
Return to tophttps://github.com/python-escpos/python-escpos/discussions/458#top
Please reload this pagehttps://github.com/python-escpos/python-escpos/discussions/458
https://github.com/python-escpos/python-escpos/discussions/458
jjaacckk https://github.com/jjaacckk
Aug 6, 2021 https://github.com/python-escpos/python-escpos/discussions/458#discussion-3505255
Give feedback.https://github.com/python-escpos/python-escpos/discussions/458
patkan https://github.com/patkan
Aug 7, 2021 https://github.com/python-escpos/python-escpos/discussions/458#discussioncomment-1142635
https://pypi.org/project/python-escpos/3.0a8/https://pypi.org/project/python-escpos/3.0a8/
profilehttps://python-escpos.readthedocs.io/en/latest/api/escpos.html#escpos.escpos.Escpos
https://mike42.me/escpos-printer-db/#profiles/TM-T88IIhttps://mike42.me/escpos-printer-db/#profiles/TM-T88II
https://pypi.org/project/Unidecode/https://pypi.org/project/Unidecode/
View full answer https://github.com/python-escpos/python-escpos/discussions/458#discussioncomment-1142635
Oldest https://github.com/python-escpos/python-escpos/discussions/458?sort=old
Newest https://github.com/python-escpos/python-escpos/discussions/458?sort=new
Top https://github.com/python-escpos/python-escpos/discussions/458?sort=top
Please reload this pagehttps://github.com/python-escpos/python-escpos/discussions/458
https://github.com/python-escpos/python-escpos/discussions/458
patkan https://github.com/patkan
Aug 7, 2021 https://github.com/python-escpos/python-escpos/discussions/458#discussioncomment-1142635
https://pypi.org/project/python-escpos/3.0a8/https://pypi.org/project/python-escpos/3.0a8/
profilehttps://python-escpos.readthedocs.io/en/latest/api/escpos.html#escpos.escpos.Escpos
https://mike42.me/escpos-printer-db/#profiles/TM-T88IIhttps://mike42.me/escpos-printer-db/#profiles/TM-T88II
https://pypi.org/project/Unidecode/https://pypi.org/project/Unidecode/
Give feedback.https://github.com/python-escpos/python-escpos/discussions/458
https://github.com/jjaacckk
Please reload this pagehttps://github.com/python-escpos/python-escpos/discussions/458
https://github.com/python-escpos/python-escpos/discussions/458
jjaacckkhttps://github.com/jjaacckk
Aug 9, 2021 https://github.com/python-escpos/python-escpos/discussions/458#discussioncomment-1147684
Give feedback.https://github.com/python-escpos/python-escpos/discussions/458
patkanhttps://github.com/patkan
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-escpos%2Fpython-escpos%2Fdiscussions%2F458
🙏 Q&A https://github.com/python-escpos/python-escpos/discussions/categories/q-a
https://github.com/jjaacckk
https://github.com/patkan
https://github.com/python-escpos/python-escpos/discussions/458
https://github.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.