### Bug description

I need to prepare a '.qmd' document that delivers an output in Spanish. I decided to make a test for both **docx** and **HTML** outputs before I worked on the actual document. This is the code I used in the .qmd file:

````
---
title: "Descarbonización de la Matriz Energética Colombiana"
format: docx
lang: es
---

```{r}
library(tinytex)
```

Hola, ese niño está jugando._
````



But the output for both MS-Word and HTML resulted in text like the one contained in the Word output file I am attaching. 

The RStudio IDE version I am using is 2022.07.1 Build 554.
The Windows version I am using is  Windows 11 Home Single Language.
The processor I am using is Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz   1.80 GHz.
The installed RAM is 12,0 GB.
I am using the Package quarto version 1.2.
I am using R version 4.0.3.

### `quarto check` Output

C:\R\RStudio\Quarto\CursoUniandesJR_files>quarto check

[>] Checking Quarto installation......OK
      Version: 1.0.38
      Path: C:\Users\maria\AppData\Local\Programs\Quarto\bin\
      CodePage: 1252

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........OK
      Version: 4.0.5
      Path: C:/R/R-4.0.5
      LibPaths:
        - C:/R/R-4.0.5/library
      rmarkdown: 2.14

[>] Checking Knitr engine render......OK

### `quarto tools check` Output

C:\R\RStudio\Quarto\CursoUniandesJR_files>quarto tools check
[>] Inspecting tools

Tool         Status            Installed     Latest
chromium     Not installed     ---           869685
tinytex      Not installed     ---           v2022.08


### Checklist

- [X] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?
- [X] included a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X ] documented the quarto version you're running, by pasting the output from running `quarto check` in the "Quarto Check Output" text area?
- [X ] documented the version of the quarto tools you're running, by providing the output from running `quarto tools check` in the "Quarto Tools Check Output" text area?
- [X] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] documented which operating system you're running? If on Linux, please provide the specific distribution as well.
- [X] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
2022-08-19T16:26:29Z
JuanRodCif
bug
Future
closed
Quarto Document Language for Spanish NOT working
https://github.com/quarto-dev/quarto-cli/issues/1999