Skip to content

Commit

Permalink
fix: book charset (#483)
Browse files Browse the repository at this point in the history
## Что этот PR делает

Контент книг на кириллице отображается корректно

fixes #475

## Почему это хорошо для игры

Контент книг на кириллице отображается корректно вместо кракозябр - это
теперь можно читать

## Тестирование
Зашел в игру, написал в книгу русскоязычный текст - всё читается

## Changelog

:cl:
fix: Текст кириллицей отображется корректно в книгах
/:cl:
  • Loading branch information
Gaxeer committed Oct 18, 2023
1 parent 04157f7 commit 4def624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/library/book.dm
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
* buttons and then builds the rest of the UI based on what page the player is turned to.
*/
/obj/item/book/proc/show_content(mob/user)
var/dat = ""
var/dat = "<meta charset='utf-8'>"
//First, we're going to choose/generate our header buttons for switching pages and store it in var/dat
var/header_left = "<div style='float:left; text-align:left; width:49.9%'></div>"
var/header_right = "<div style ='float;left; text-align:right; width:49.9%'></div>"
Expand Down

0 comments on commit 4def624

Please sign in to comment.