# レガシで使えた「StrConv」がwindowsでは利用できません。

**URL:** <https://forum.uipath.com/t/strconv-windows/557492>\
**Category:** フォーラム\
**Tags:** studio\
**Created:** [June 26, 2023, 1:31am UTC](https://forum.uipath.com/t/strconv-windows/557492 "2023-06-26T01:31:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasegawa.t](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hasegawa.t/32/405707_2.png) [@hasegawa.t](https://forum.uipath.com/u/hasegawa.t)\
**Post date:** [June 26, 2023, 1:31am UTC](https://forum.uipath.com/t/strconv-windows/557492/1 "2023-06-26T01:31:00Z")

</div>

「'StrConv’は宣言されていません。アクセスできない保護レベルになっています。」とのエラーがありパブリッシュすることができません。

解決策をお教えください。

よろしくお願いいたします。

 ![タイトルなし](https://global.discourse-cdn.com/uipath/original/4X/c/6/e/c6eaca68f4fff41326b0d8bd96d24ef059434c1f.png)

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [June 26, 2023, 1:42am UTC](https://forum.uipath.com/t/strconv-windows/557492/2 "2023-06-26T01:42:15Z")

</div>

こんにちは

取り急ぎ名前空間付きで呼び出してもらえますでしょうか？

```
Microsoft.VisualBasic.Strings.StrConv(yourString,VbStrConv.Narrow,&H411)

```

あとEncodingの関係で以下も必要になると思います。

> [@エンコード"shift\_jis"はサポートされていませんというエラーの解消方法について](https://forum.uipath.com/t/shift-jis/407928):
>
> CSVを読み込みアクティビティを配置し、 プロパティのエンコードを"“shift\_jis”"に設定してデバッグをかけるとエラーが発生します。 エラーの解消方法について教えてください。 エラー内容： CSV を読み込み: ‘shift\_jis’ is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. (Parameter ‘name’)

---

<div class="post-metadata">

**Author:** ![hasegawa.t](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hasegawa.t/32/405707_2.png) [@hasegawa.t](https://forum.uipath.com/u/hasegawa.t)\
**Post date:** [June 26, 2023, 3:19am UTC](https://forum.uipath.com/t/strconv-windows/557492/3 "2023-06-26T03:19:52Z")

</div>

Yoichiさん ありがとうございます。 お世話になりました。
