chore: rewrite for pure utf-8 content handling #511
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



This pull request refactors the handling of character encoding throughout the codebase and updates test data files to use UTF-8 encoding. It also removes obsolete encoding conversion functions and updates related tests to reflect current world data. These changes help standardize encoding, simplify code, and ensure better compatibility with international characters.
Encoding and test data standardization:
src/static/testdata/characters/and similar directories to use UTF-8 encoding in their<meta>tags and addedlang="en"to the<html>tag, replacing the previous ISO-8859-1 encoding. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]Codebase simplification:
TibiaDataConvertEncodingtoISO88591andTibiaDataConvertEncodingtoUTF8functions, and their dependencies oncharmapandio, as all test data and processing now use UTF-8 exclusively. [1] [2] [3]Testing improvements:
TestWorldAnticatosrc/TibiaWorldsWorld_test.goto verify correct parsing of a world with special characters in player names, ensuring UTF-8 compatibility.TestWorldPremiainsrc/TibiaWorldsWorld_test.goto reflect current world status, online player count, and quest titles, aligning test expectations with updated data.