半角を全角にする方法を検索したら、
「strData = StrConv(strData, VbStrConv.Wide,&H411)」
と回答がありましたので、使用しましたら、
No data is available for encoding 932.For information on defining a custom endoding,see the documentation for the Encoding.RegisterProvider method.
とエラーが出てしましました。
どなたか教えていただけると幸いです。
よろしくお願いいたします。
Hi @mayumi-abe
Assign activity:
strData = StrConv(strData, VbStrConv.Wide)
Check the thread,It might helps you
Hi I am looking for conversion of half width to full width and vice versa of Japanese characters in uipath, I tried using strconv but it didn’t worked .
Example
ラーメン" to “ラーメン” and vice versa and it should do it for spaces and numbers also.
Regards
Nara
Hope it helps!!
Yoichi
(Yoichi)
July 25, 2023, 5:30am
3
こんにちは
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance)
を事前にコールください。詳しくは以下POST参照ください
ちなみにWindows (.net5)でも、InvokeMethodで以下を呼び出せば、その後は"shift_jis"が通るようです。
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance)
[img20220318-3]
[img20220318-2]
ご参考まで
Yoichiさま
メソッド呼び出しを設定したらうまく動きました。
早々に教えていただきありがとうございました。
とても助かりました。
2 Likes