Skip to content

Commit

Permalink
Fix unicode in 516 browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
out-of-phaze committed Jun 22, 2024
1 parent 3804d1f commit c9ca80f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/_macros.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<!DOCTYPE html><meta charset=\"utf-8\">" + 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)
Expand Down

0 comments on commit c9ca80f

Please sign in to comment.