cloudflare / cloudflare/py-mmdb-encoder

Problems with Sonderzeichen - like ö, ä and others

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
31
Forks
9
PR merge metrics
No merged PRs in 30d

Description

In TYPE_UTF8STR it would be helpful to have some utf-8 encoding and then work with the length of the encoded value. With this we are able to use other utf-8 encodes characters.

Please change so others can also use utf-8 characters.

```
if fieldid == EncoderConstants.TYPE_UTF8STR:
encoded_value = value.encode('utf-8')
content = encoded_value
length = len(encoded_value)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.