Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 parse description bug
Today, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Bing, Google

Members: 0
Guests: 9
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
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,866
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,866
JoinedJul 26, 2005

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