You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have implement a console device implementing a textencoding work around as follows :
Public Sub WriteConsole(output As String, length As Integer, outputType As ConsoleOutputType) Implements ICharacterDevice.WriteConsole
Dim E As Encoding = Encoding.GetEncoding(NativeMethods.GetACP)
Dim UTF8Bytes() As Byte
Dim S2 As String = output
Dim Stx = output.IndexOf(ChrW(2))
Dim Etx = output.IndexOf(ChrW(3))
Try
If Stx > 0 And Etx > Stx + 2 Then
S2 = output.Substring(Stx + 3, Etx - Stx - 3)
UTF8Bytes = E.GetBytes(S2)
S2 = Encoding.UTF8.GetString(UTF8Bytes)
Else
S2 = output
End If
Catch ex As Exception
'FIX ME add some tracing??
End Try
Console.Write(S2)
Return
End Sub
This works for fixing the internal output, but I have the feeling that I am doing things wrong here.
Is there a setting in R.Net that needs to be set to have a proper handling of non ascii chars on non us systems with recent version of R runtime?
The text was updated successfully, but these errors were encountered:
We encounter an issue with R.Net. I think it is linked to the change of handling of unicode chars in recent R version.
The symptom is as follows :
For example if I send print("é") to evaluate to R.Net the console output will be :
I have implement a console device implementing a textencoding work around as follows :
This works for fixing the internal output, but I have the feeling that I am doing things wrong here.
Is there a setting in R.Net that needs to be set to have a proper handling of non ascii chars on non us systems with recent version of R runtime?
The text was updated successfully, but these errors were encountered: