Skip to content

Commit

Permalink
Enforce UTF-8 encoding when updating copyright year in mkdocs.yml
Browse files Browse the repository at this point in the history
When copyright character (©) is read in or exported to a file by Ant on Windows, the file's encoding is converted from UTF-8 to CP1252.

Closes: #562
  • Loading branch information
AntumDeluge committed Oct 30, 2023
1 parent 49b64c1 commit d0bf2a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildtools/ant_modules/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
<replaceregexp file="${buildtools}/mkdocs/mkdocs.yml"
match="^copyright:.*"
replace="copyright: Copyright &#169; 2003-${year} Stendhal"
byline="true"/>
byline="true"
encoding="UTF-8"/>

<!-- pre release version -->
<replaceregexp file="${src}/games/stendhal/common/Debug.java"
Expand Down

0 comments on commit d0bf2a0

Please sign in to comment.