Home
Blog
Overview of all products
SalesData
LibraryData
CataList
Loan Stars
BiblioShare
Webform
EDI
Products for publishers
Products for retailers
Products for libraries
Information for authors
BNC Research
Canadian literary awards
SalesData & LibraryData Research Portal
Events
Tech Forum
Webinars & Training
Code of Conduct
Standards
EDI standards
Product identifiers
Classification schemes
ONIX standards
About
Contact us
Media
Bestseller lists
Newsletters
Podcast
Jobs
SalesData
LibraryData
CataList
BiblioShare
Webform
EDI

BookNet Canada

Home
Blog
Overview of all products
SalesData
LibraryData
CataList
Loan Stars
BiblioShare
Webform
EDI
Products for publishers
Products for retailers
Products for libraries
Information for authors
BNC Research
Canadian literary awards
SalesData & LibraryData Research Portal
Events
Tech Forum
Webinars & Training
Code of Conduct
Standards
EDI standards
Product identifiers
Classification schemes
ONIX standards
About
Contact us
Media
Bestseller lists
Newsletters
Podcast
Jobs
SalesData
LibraryData
CataList
BiblioShare
Webform
EDI
Graham Bell, EDItEUR
July 14, 2023
ONIX, Standards & Metadata

Character encoding mismatches in ONIX

Graham Bell, EDItEUR
July 14, 2023
ONIX, Standards & Metadata

The following post was featured in the international ONIX implementation group — a mailing list that you really should follow for ONIX announcements and discussion. Want to stay on top of ONIX implementation issues in a global discussion led by EDItEUR? Join the group here and continue reading.

Nâzım Hikmet

Marie-Adélaïde Barthélemy-Hadot

‘Excellently written’ – Wisława Szymborska

It’s hard to make any sense of text like this. But it’s a sure sign of a mismatched character encoding. In fact, the above should look like this…

Nâzım Hikmet

Marie-Adélaïde Barthélemy-Hadot

‘Excellently written’ — Wisława Szymborska

The three names, of Turkish, French and Polish writers, require some special characters. And those characters can be “encoded” digitally in a variety of ways. Ultimately, for data to look correct, the encoding method needs to match all the way along the data supply chain. But you often see character encoding issues like this, in online bookstores and elsewhere, and a publisher asked about it earlier this week because author names on their own website did not match the names in their internal system.

In a publisher’s system, the publisher’s staff probably know how to make these names look correct in their own system. If the system exports ONIX, then the character encoding method used by that system is listed in the ONIX itself — it’s on the first line of the ONIX message:

<?xml version="1.0" encoding="UTF-8"?>

It needn’t always be UTF-8 (Unicode) — it can be Windows-1252 or a range of other encodings.

And then an ONIX recipient needs to respect that encoding when the ONIX data is imported into another system, for example, a retailer’s system or a website server. The retailer's system or webserver might use that same encoding internally, or they might use a different encoding — and if different, the encoding of the data needs to be explicitly changed into whatever the retail system uses, as it is imported.

The top example here illustrates what happens if the ONIX encoding is not respected as the data is imported. This is data that was encoded using UTF-8 Unicode in the ONIX, but was imported into a retailer system that uses Windows-1252 encoding as if it were already encoded using Windows-1252.

Conversion from one encoding into another is mostly straightforward for developers.

It’s a fact that some encodings are more comprehensive than others. Sometimes this means that you can have a character in the ONIX that cannot be ‘converted’ into whatever encoding is used by the recipient system because the encoding used in that recipient system doesn’t have an encoding for that particular character at all. Cyrillic or Arabic characters cannot be encoded using Windows-1252, for example. Unicode is the most universal, and forward-looking developers will mostly be using Unicode internally.

There is an appendix in the ONIX Implementation and Best Practice Guide that covers the question of character encodings in more detail.

And you might ask why the ONIX tags themselves — like <Header> or <PersonName> — don’t get affected by this? That’s a consequence of the fact that the ONIX tags themselves use only ASCII characters. Of course, the data within the tags can use any available characters. ASCII is a tiny subset of all the characters available, and for historical reasons almost every encoding method encodes them in the same way — so whichever character encoding you’re using, the tags themselves will remain recognizable. Whichever encoding you are using, <PersonName> will look like <PersonName>, even if Marie-Adélaïde Barthélemy-Hadot ends up looking like Marie-Adélaïde Barthélemy-Hadot.

Graham Bell is Executive Director of EDItEUR, responsible for the overall development of EDItEUR’s standards and the management services it provides on behalf of other standards agencies (including the International ISNI agency and the International DOI Foundation).

He joined EDItEUR as its Chief Data Architect in 2010, focused on the continuing development and application of ONIX for Books, and on other EDItEUR standards for both the book and serials sectors.

Subscribe

Don’t miss any new blog posts. Sign up for our weekly eNews to receive updates.

You can unsubscribe at any time. We respect your privacy.

Thank you!
Recent posts
Tell us about the state of Canadian publishing?
Tell us about the state of Canadian publishing?

Take this survey to help us tell you how Canadian publishing has changed since the last time we released our report.

Read more →
How have Canadian readers been celebrating Pride Month in 2026?
How have Canadian readers been celebrating Pride Month in 2026?

It’s Pride Season across Canada and we wanted to look at how titles categorized under LBTQ+ BISAC codes have been selling.

Read more →
Canada Day 2026: How have Canadian titles been performing over the last five years?
Canada Day 2026: How have Canadian titles been performing over the last five years?

Sneak a peek at buying and borrowing numbers for Canadian titles to see how that has evolved over the last five years.

Read more →
Updating from ONIX 3.0 to 3.1?
Updating from ONIX 3.0 to 3.1?

Updating from 3.0 to 3.1 involves only a handful of steps. Find out what they are here!

Read more →
Podcast: A conversation about the present and future of audiobooks
Podcast: A conversation about the present and future of audiobooks

What’s trending for audiobooks in 2026?

Read more →
Have you heard? There's a new way to identify Canadian publishers using BISAC Merchandising Codes
Have you heard? There's a new way to identify Canadian publishers using BISAC Merchandising Codes

ICYMI, the Book Industry Study Group (BISG) published the 2025 update to its book publishing subject codes.

Read more →
Scrolling stories: Ebook use in Canada 2025
Scrolling stories: Ebook use in Canada 2025

Get a free copy of the study today!

Read more →
July 2026 Loan Stars Adult Canadian top picks
July 2026 Loan Stars Adult Canadian top picks

Find out which titles made it to the July 2026 Loan Stars Adult Canadian list.

Read more →
You are special: Using ONIX to effectively identify special editions in the marketplace
You are special: Using ONIX to effectively identify special editions in the marketplace

If you’ve struggled to properly define what makes your book “special,” this Application Note will help to end the struggle.

Read more →
Tips to help independent booksellers and independent publishers better collaborate
Tips to help independent booksellers and independent publishers better collaborate

Practical strategies that allow indie booksellers and publishers to strengthen their partnerships and sell more books.

Read more →
Registering for an ISNI
Registering for an ISNI

What is ISNI and why should you register for it?

Read more →
What's selling for summer?
What's selling for summer?

What have Canadians been buying for their summer reads?

Read more →

Tagged: onix, book metadata best practices

Newer PostGet to know Canadian book consumers: Ages 45-54
Older PostJuly Loan Stars Adult Canadian Top 10 list
No results found
Blog RSS

The Canadian Book Market 2025 is the comprehensive guide to the Canadian market with in-depth category data.

Get your copy now

Listen to our latest podcast episode


  • Research & Analysis 489
  • Ebooks 304
  • Tech Forum 280
  • Conferences & Events 262
  • Standards & Metadata 256
  • Bookselling 222
  • Publishing 202
  • ONIX 198
  • Marketing 153
  • Podcasts 129
  • ebookcraft 112
  • BookNet News 107
  • Loan Stars 79
  • Libraries 67
  • BiblioShare 59
  • 5 Questions With 53
  • SalesData 52
  • Thema 47
  • CataList 44
  • Awards 30
  • Diversity & Inclusion 21
  • Sustainability 19
  • Publishing & COVID-19 18
  • EU Regulations 16
  • LibraryData 10
  • ISNI 5

 

 

BookNet Canada is a non-profit organization that develops technology, standards, and education to serve the Canadian book industry. Founded in 2002 to address systemic challenges in the industry, BookNet Canada supports publishing companies, booksellers, wholesalers, distributors, sales agents, industry associations, literary agents, media, and libraries across the country.

 

Privacy Policy | Accessibility Policy | About Us

BOOKNET CANADA

Contact us | (416) 362-5057 or toll free 1 (877) 770-5261

We acknowledge the financial support of the Government of Canada through the Canada Book Fund (CBF) for this project.

Back to Top

BookNet Canada acknowledges that its operations are remote and our colleagues contribute their work from the traditional territories of the Mississaugas of the Credit First Nation, the Anishnawbe, the Haudenosaunee, the Wyandot, the Mi’kmaq, the Ojibwa of Fort William First Nation, the Three Fires Confederacy of First Nations (which includes the Ojibwa, the Odawa, and the Potawatomie), and the Métis, the original nations and peoples of the lands we now call Beeton, Brampton, Guelph, Halifax, Thunder Bay, Toronto, Vaughan, and Windsor. We endorse the Calls to Action from the Truth and Reconciliation Commission of Canada (PDF) and support an ongoing shift from gatekeeping to spacemaking in the book industry.