Write Text as UTF-8, Falling Back to ASCII on an Encoding Error
Source:R/lib_helpers.R
write_text_fallback.RdWrites text to path as UTF-8. If the write raises an encoding error
(for example a destination or locale that cannot represent the
characters), it retries with an ASCII transliteration produced by
to_ascii() so bundle generation never fails on a non-ASCII name.