<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/130741>130741</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Add flag "/utf-8" for MSVC compiler in the build script
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ChihHao-Su
      </td>
    </tr>
</table>

<pre>
    This will solve https://github.com/llvm/llvm-project/issues/60549.

> You need to add `-DCMAKE_CXX_CLAGS="/utf-8" to command line argument.

> I got similar result with LLVM 18.1.8 and Visual Studio 19 in Japanese environment(CP932).



> MSVC opens source file with system code page by default. 



>  
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJycksuK2zAUhp9G3hxiLPkSe6FF6ox7m4FCyjBdDbJ1bKvIktElIW9fnEkpHboqCP6FxPej8x3hvZoMIiflB1IeExHDbB1vZzV_EnZ3iklv5ZV_n5WHi9IavNVnhDmE1ZP8QFhHWDepMMc-HexCWKf1-XfsVmd_4hAI65T3ET1hXZWVRZOS7LCd_AF-2AgGUUKwIKQEUmW7Y_t0-Prw2r68vLaPh48nkh8JY4R1MYy7mjC2PR7ssggjQSuDINwUFzQhvVPv8RkmG8CrRWnhwKGPOsBFhRkeH5-fgNYpTWvYKM_KR6HhFKJUFmgDysAXsQqDHgHNWTlrtgLC6vZbkzPCmnddf8fT6bkFu6Lx4G10A8KoNL51-6sPuMBgJcIqJoT-ChJHEXVI_027BySS57LJG5Egp_uCVnW13xfJzIu-rEQ91nVRDaKSos8x77OyGOuCUdaUieIsY2WWU5o1JSuLdNyXeSXpyPqqQTrUpMhwEUqnm7jUuim5KeM0z_YFTbToUfvbljBm8AK3281KeUwcv9nu4-RJkWnlg_-DCSpo5AcpYdRignciR-veZjXYZVUa3Tb4MCP0UWkJfnBqDUl0mv__yt2_cObsVwAAAP__QLDmiQ">