Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Kairuni

Pages: [1]
1
System / sf::Utf
« on: September 23, 2011, 10:08:20 am »
Excellent. Thank you, Laurent. =)

2
System / sf::Utf
« on: September 23, 2011, 09:31:49 am »
Unfortunately, or not, I've very little experience working with unicode strings.

Currently, I'm working on a MUD client that I would like to support utf-8 inputs.
As is usual with telnet-related applications, I'm already pulling out the various telnet and MUD-specific things as they come in.
This leaves me with a stream of bytes, which need to get converted to a utf-8 string for parsing and displaying. Unfortunately, these won't always be valid utf-8 strings, as the final character might get chopped in half (though in most cases, it will not).

Essentially, I'm trying to understand how to use sf::Utf along with sf::String for displaying the characters. The templating on sf::Utf is mildly confusing, as well. Any tips?

Edit: Definitely meant to post this under system. Apologies. :\

Pages: [1]