I found the follwing error when I render a qmd file which contains multibyte characters in `fig.cap` under non-English locale (`jp_JP.utf8`, Ubuntu 20.04 on WSL2).

```
quarto render reprex.qmd

...

Error in yaml::yaml.load(yaml, eval.expr = TRUE):
  Scanner error: while scanning a quoted scalar at line 1, column 10 found unexpected end of stream at line 1, column 12
Calls: .main ... parse_block -> partition_yaml_options -> <Anonymous>
Execution halted
```

`reprex.qmd` is like this.

````
---
title: "Untitled"
format:
  html:
    theme: default
---

```{r}
#| fig.cap: "α"
plot(1)
```
````

I can avoid this error by executing `LOCALE=en_US.utf8 quarto render ....` in the terminal. But it's inconvenient on RStudio.

NOTE: Pandoc's native syntax (like `![Elephant](elephant.png)`) doesn't return error.
2021-07-16T07:18:34Z
Gedevan-Aleksizde
closed
Figure caption error with multibyte characters and non-English locale
https://github.com/quarto-dev/quarto-cli/issues/57