Skip to content
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

Should the character encoding in database be normal (not HTML-encoded) and encode them on the output media/channel when they are needed? #62

Open
zybersup opened this issue Jan 18, 2025 · 3 comments

Comments

@zybersup
Copy link

I have developed some applications using database of FrontAccounting to extend other functions we need to use. One of the annoying problem is about the encoded data in the database which are HTML encoded in many data. The data I often used are the name and description of items ('description' and 'long_description' fields in 'items' table).

When I just want to send or export them to the other applications as XML or JSON, I have to decode them back to normal before encoding them to the targeted media or platforms later. Sometimes they are double encoded in the database.

To make software more modular, the encoding process should be done at the place they need. For example, HTML encoding will be done when the data will be displayed on web browsers.

Is there anyone want to set a new standard of encoding data in FrontAccounting to make it more interoperable with other software by storing data in simple normal text rather than HTML encoded and using a correct encoding functions on each media they are going to be displayed. It might need time to change but I think it is worthy.

@c-git
Copy link

c-git commented Jan 18, 2025

It might be worthwhile but it's a backward incompatible change so shouldn't be taken lightly.

@zybersup
Copy link
Author

It might be worthwhile but it's a backward incompatible change so shouldn't be taken lightly.

Totally understood.

Could it be branched and let us choose the version we want?

@c-git
Copy link

c-git commented Jan 18, 2025

I'm not sufficiently familiar with how this project runs to know if that would make sense but my feeling is that it would be better to choose one way instead of trying to maintain branches. But we'll see what the maintainer's think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants