Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re: -proper- with portuguese/spanish characters

From   Ronnie Babigumira <>
Subject   st: Re: -proper- with portuguese/spanish characters
Date   Fri, 27 Apr 2012 16:04:58 +0200

Sorry but I should not have posted this as Jorge Eduardo Pérez Pérez had, just a a day earlier, written asking for exactly the same thing. I somehow missed his email.

I also asked Stata Corp about it and this is what they have said

Unfortunately, Stata supports only ASCII characters. You are using special characters that we can probably store, but we cannot process them with Stata commands and functions. -proper()- is working as expected, in the sense that it is converting to uppercase all characters immediately following characters that are not letters. The diacritical characters you are using are not being considered as letters.

The good news is that a good samaritan on the list is working on a solution that may soon be posted on ssc



On Thursday, April 26, 2012 at 1:31 PM, Ronnie Babigumira wrote:

> Dear listers
> Stata 12.1 on a Mac OS X (10.6.8)
> Any idea how to get -proper- to correctly format a string variable that has Portuguese/Spanish characters. As an example
> - di proper("ripão poraqueíba") -
> gives me
> RipãO PoraqueíBa
> Stata caps the first letter right after the portuguese character (even when this letter is in the middle of the word).  
> This behavior carries through for whole variable so for example, the same result as above would result from  
> gen name2 = proper(name)
> Thanks,
> Ronnie
> --  
> 010100100110111101101110011011100110100101100101

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index