From c9ca80fb64cc523d4813ad944049de3f07189a92 Mon Sep 17 00:00:00 2001 From: Penelope Haze Date: Mon, 20 May 2024 18:09:19 -0400 Subject: [PATCH] Fix unicode in 516 browsers --- code/_macros.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/_macros.dm b/code/_macros.dm index 10ac47b0b68..31458da86e5 100644 --- a/code/_macros.dm +++ b/code/_macros.dm @@ -90,13 +90,18 @@ #define random_id(key,min_id,max_id) uniqueness_repository.Generate(/datum/uniqueness_generator/id_random, key, min_id, max_id) +/proc/place_meta_charset(content) + if(istext(content)) + content = "" + content + return content + #define to_chat(target, message) target << (message) #define to_world(message) world << (message) #define to_world_log(message) world.log << (message) #define sound_to(target, sound) target << (sound) #define to_file(file_entry, source_var) file_entry << (source_var) #define from_file(file_entry, target_var) file_entry >> (target_var) -#define show_browser(target, browser_content, browser_name) target << browse(browser_content, browser_name) +#define show_browser(target, browser_content, browser_name) target << browse(place_meta_charset(browser_content), browser_name) #define close_browser(target, browser_name) target << browse(null, browser_name) #define show_image(target, image) target << (image) #define send_rsc(target, rsc_content, rsc_name) target << browse_rsc(rsc_content, rsc_name)