New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Character Encoding Error in Collector PacketBatchInserter.py #26
Comments
This was solved. In a normal installation of Postgres the default encoding is set to ASCII. This was raising issues with mogrify which is tied to the character set of the database. I had to drop the database then alter the CREATE DATABASE statement in the instructions to add ENCODING 'UTF8' The final statement was: CREATE DATABASE trackdirect ENCODING 'UTF8'; After that the collectors work. |
Hi,
Does this now need to be done now on the main branch or just on the python3
port?
If on main, can you please modify README.md to reflect the new step of
including the encoding scheme during database creation?
Nathan Campbell
…On Tue, Aug 16, 2022 at 8:46 AM shackrat ***@***.***> wrote:
This was solved. In a normal installation of Postgres the default encoding
is set to ASCII. This was raising issues with mogrify which is tied to the
character set of the database.
I had to drop the database then alter the CREATE DATABASE statement in the
instructions to add ENCODING 'UTF8'
The final statement was:
CREATE DATABASE trackdirect ENCODING 'UTF8';
After that the collectors work.
—
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF44PQKWGGR4H4RLQ2IH6F3VZOZV5ANCNFSM56WFCVPQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
It's the main branch. It appears that a fresh install of Postgres using the instructions will default to ASCII as the character set. It's necessary to specify encoding when creating the database to get around this. I've created a PR to update the readme as you asked. Thanks! |
Perfect, thanks so much!
Nathan
…On Wed, Aug 17, 2022 at 9:57 PM shackrat ***@***.***> wrote:
It's the main branch. It appears that a fresh install of Postgres using
the instructions will default to ASCII as the character set. It's necessary
to specify encoding when creating the database to get around this. I've
created a PR to update the readme as you asked.
Thanks!
—
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF44PQNHKEKVPGDVEES2I2DVZW7CVANCNFSM56WFCVPQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I have this setup and largely working well in a Ubuntu 20.04 container. Having one issue where it seems the collector is unable to process the UTF-8 characters coming from the aprsc server.
The error is as follows:
Locales appear to be set properly for UTF8.
It doesn't matter if I use my own aprsc server or one of the T2 servers. I get the same error so I can safely rule out the server as being the issue.
Unfortunately I am not a Python expert. Could it be that something is be missing in the Python2 setup instructions related to character set?
The text was updated successfully, but these errors were encountered: