Code Monkey home page Code Monkey logo

Comments (4)

monsieurgustav avatar monsieurgustav commented on June 3, 2024

OSC has no knowledge of UTF8, it's just bytes.
You must tell UE4 to interpret received bytes as a UTF8 stream somehow. I would try to use the OSC "blob" type, which gives an byte array to work with.

from ue-osc.

serourian avatar serourian commented on June 3, 2024

thx for the fast reply very much.
Does the output of the Pop String hold utf8 ??? Is it possible to add a new " Pop UTF8 string" receiver function in osc ??
The controllers we have programmed are all huge and many, it is impossible for us to change everything back to blob . . . .

The osc message sent by the "Ventuz OSC" marks the message beginning array is marked with 'B' 'E' 'U' 'C'

from ue-osc.

monsieurgustav avatar monsieurgustav commented on June 3, 2024

Unfortunately, it won't be that easy:
In this plugin, OSC strings are stored as FName. I don't know if FName is capable of storing UTF8, that you must try.

There may be a bug when copying OSC string to FName here:
https://github.com/monsieurgustav/UE4-OSC/blob/eaec411eca94f50aae1fbc9451535ae08e4c87e9/OSC/Source/OSC/Private/Receive/OscDispatcher.cpp#L137
Currently, FName is constructed using a char*. One might need to use wchar_t* to support UTF8?

Once stored in FName, it is get/set here:
https://github.com/monsieurgustav/UE4-OSC/blob/eaec411eca94f50aae1fbc9451535ae08e4c87e9/OSC/Source/OSC/Public/Common/OscDataElemStruct.h#L92

from ue-osc.

serourian avatar serourian commented on June 3, 2024

thank you very much

from ue-osc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.