jekyll-pwa-workbox
jekyll-pwa-workbox copied to clipboard
UndefinedConversionError (but only when running on remote server)
So I build my Jekyll site on Github using a GitHub Action. When I test it locally, it compiles without a hitch. And when I only enable the PWA for my small recipes folder, it runs fine in both places.
But when I enable it for the drinks section I have, it breaks, but only when I run it on the GitHub Action (running ubuntu). it builds just fine on my local machine (Mac OS).
I think this might be how to fix it: https://stackoverflow.com/questions/23309669/ruby-encode-xc3-from-ascii-8bit-to-utf-8-encodingundefinedconversionerr/23382078
but I'm not sure if that means changing the code in the plugin or if I need to do something in the GitHub Action.
/github/workspace/vendor/bundle/ruby/2.7.0/gems/jekyll-pwa-workbox-5.1.41/lib/jekyll-pwa-workbox.rb:89:in `to_json': "\\xC3" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
155
jekyll 3.9.0 | Error: "\xC3" from ASCII-8BIT to UTF-8
I figured out the files causing the error and just changed the names, but clearly the plugin can support special characters like ñ some of the time