-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I have in my routes, files with persian characters in them. for example :
photo/2021-08-16___پشت کریمخانی.html
The site is OK in live server. but it refuses to generate these files in files system.
here is my prism'
prism'
(\photo -> "photo/" <> showDay (phDate photo)
<> "___" <> phTitle photo
<> ".html")
(\path -> do
p <- stripPrefix "photo/" path
index <- extractTitleDate p
lookup index $ modelPhotos m)
when I try to generate the site:
❯ nix build .#site
> [Info#ema.generate] W /nix/store/xf217fn6icapqiacvkckzv1247v5wsf6-site/photo/2021-08-16___پشت کریمخانی.html
> ema-template: /nix/store/xf217fn6icapqiacvkckzv1247v5wsf6-site/photo/2021-08-16___ .html: withBinaryFile: invalid argument (cannot encode character '\1662')
To Reproduce
Steps to reproduce the behavior:
- have a file name with none English characters
- try to generate with nix build .#site
- it refuses to generate html file.
Expected behavior
it should generate file with none English characters.
Desktop (please complete the following information):
- linux
- hyprland
- firefox
- nixos
Additional context
site is Ok when tested on live server.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working