Repository: vscode
Issue: Git - .gitignore does not work for Hangul
Labels: bug,git

Type: <b>Bug</b>


  I have files with Hangul and even I list it in my .gitignore, VScode does not ignore them. But Rstudio does ignore them. So I suspect it's because of encoding issue? My gitignore is in UTF-8 and Windows native encoding is other than UTF-8. 

VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z)
OS version: Windows
Modes:
Sandboxed: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz (4 x 3696)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|undefined|
|Memory (System)|15.94GB (11.58GB free)|
|Process Argv|--crash-reporter-id d37087fc-2233-483e-afe5-97faf983e2ad|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (46)</summary>

Extension|Author (truncated)|Version
---|---|---
better-comments|aar|3.0.2
Bookmarks|ale|13.3.1
markdown-image-size|bie|0.0.4
markdown-shiki|bie|0.1.1
jsonviewer|cci|1.2.5
vscode-path-tools|cg-|0.0.4
vscode-mysql-client2|cwe|5.8.10
quick-html-previewer|dai|1.0.1
vscode-markdownlint|Dav|0.48.1
xml|Dot|2.5.1
seito-openfile|Fr4|1.8.9
gc-excelviewer|Gra|4.2.56
githd|hui|2.3.3
monkey-patch|ioc|0.1.23
latex-workshop|Jam|8.29.0
simply-view-image-for-python-opencv-debugging|joh|0.0.9
vsc-python-indent|Kev|1.18.0
ligatures-limited|ksh|1.4.1
zotero|mbl|0.1.10
markdown-shortcuts|mdi|0.12.0
rainbow-csv|mec|3.2.0
git-graph|mhu|1.30.0
python|ms-|2022.16.1
vscode-pylance|ms-|2022.10.30
vscode-jupyter-cell-tags|ms-|0.1.6
vscode-jupyter-slideshow|ms-|0.1.5
remote-containers|ms-|0.255.4
remote-ssh|ms-|0.90.1
remote-ssh-edit|ms-|0.84.0
remote-wsl|ms-|0.72.0
vscode-remote-extensionpack|ms-|0.21.0
sqltools|mtx|0.25.1
sqltools-driver-mysql|mtx|0.4.0
vscode-paste-image|mus|1.0.4
indent-rainbow|ode|8.3.1
advanced-new-file|pat|1.2.2
git-file-history|pom|1.0.1
r|REd|2.6.0
partial-diff|ryu|1.4.3
preview-vscode|sea|2.2.5
code-settings-sync|Sha|3.4.3
markdown-preview-enhanced|shd|0.6.3
html5-boilerplate|sid|1.1.1
vscode-wakatime|Wak|20.0.0
unsaved-files-vscode|wra|2.1.3
markdown-all-in-one|yzh|3.4.3

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
2144e591:30553903
vscccc:30566498
pyindex848:30577860
nodejswelcome1cf:30587006
fc301958:30573243

```

</details>

<!-- generated by issue reporter -->