Skip to content

Character count component counts code points, not characters #1619

@colinrotherham

Description

@colinrotherham

Bug Report

What is the issue?

This is a placeholder issue to implement a fix for alphagov/govuk-frontend#1104 in NHS.UK frontend

What steps are required to reproduce the issue?

Since Python supports counting Unicode strings we've hit issues in nhsuk-frontend-jinja with client-side max .length (JavaScript) not matching server-side len() (Python)

Metadata

Metadata

Labels

🐛 bugSomething isn't working the way it should (including incorrect wording in documentation)

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions