I got this code to retrieve the name within the email address:
StrConv(Split(emailAddress, “@”.ToCharArray)(0).Replace(“.”, " "), VbStrConv.ProperCase)
However when I try to run it I am getting this error:
Write Line: No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
When I run this using VB, Windows-Legacy it runs well. How do I make this work using VB, Windows setting?