Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, DotBot, Bing

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
619
Alexander
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » General Discussions » Special Characters
Forum Rules | Mark all | Recent Posts

Special Characters
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jan 20, 2011, 1:09 am
Go to the top of the page
Go to the bottom of the page

antram
Apprentice
GroupMembers
Posts58
JoinedNov 22, 2010

Hello,

I'm trying to translate some different codebases into spanish but when I try to write special characters (ñ, á, é, í, ó, ú;) building online, they don't appear in the screen. I can't to write special characters in shorts, longs, etc.

Instead, when I translate from the .c files, the special characters appear correctly in the mud. Someone can help me to solve this problem? I don't know how to do. I've asked some friends who have programming skills, but they don't know nothing about muds, and it's very difficult to explain them how I want to do.

Thanks for all.
       
Post is unread #2 Jan 21, 2011, 1:03 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
JoinedJul 26, 2005

Take a look at read_from_buffer (I'm just assuming it is the same in your codebase) for
      else if( isascii( d->inbuf[i] ) && isprint( d->inbuf[i] ) )
         d->incomm[k++] = d->inbuf[i];

It might look different but I think it is the isascii that is keeping you from using special characters. More or less it just strips them out of the input.
       
Post is unread #3 Jan 21, 2011, 5:05 pm
Go to the top of the page
Go to the bottom of the page

antram
Apprentice
GroupMembers
Posts58
JoinedNov 22, 2010

Remcon, Could you tell me where is this function? In wich file? Thanks. (I've seen in some different files but I've not found it) (I'm using your codebase, LOP 1.40)
       
Post is unread #4 Jan 21, 2011, 8:52 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
JoinedJul 26, 2005

You can find read_from_buffer in comm.c :)
       
Pages:<< prev 1 next >>