Need information on string encoding

Between NSStrings.h and CFStringEncodingExt.h there are scads of encodings listed but I haven't been able to find any detailed information on them. Does anyone know where I can get such information?
A secondary question: is there a simple way of including 8-bit ASCII into a string in my code? For instance, if I want to say NSString *x; x = @"ß=√π"; how can I do it?
Pete

Pete C wrote:
Between NSStrings.h and CFStringEncodingExt.h there are scads of encodings listed but I haven't been able to find any detailed information on them. Does anyone know where I can get such information?
What sort of information do you want? That isn't a small topic.
Unless you need to read any of those wacky string encodings (such as if you were writing a web browser with compatibility with web sites from 1993) you don't need to worry about any of them except for UTF-8. UTF-8 will handle 95% of your needs. MacOS X resource files and Java text uses UTF-16 for another 4.8% of your needs.
A secondary question: is there a simple way of including 8-bit ASCII into a string in my code? For instance, if I want to say NSString *x; x = @"ß=√π"; how can I do it?
You put that string into a resource file (which is encoding using UTF-16) and then load it using NSLocalizedStringFromTable.
You cannot use 8-bit data in a source file. This is a limitation of the GCC compiler and has nothing to do with a Mac.

Similar Messages

  • Need information about interfaces and namespaces in actionscript 3.0

    Hi,
    I need information about actionscript interfaces and
    namespaces, I'm preparing for ACE for Flash CS3 and I need to learn
    about this subjects and I can not find resources or simple examples
    that make these subjects understandable.
    Anybody can help me!
    Thanks a lot.

    Interfaces (cont.)
    Perhaps the most useful feature of interfaces is that you not
    only can define the data type but also method signature of the
    class that implements this interface. In other words, interface can
    define and enforce what methods class MUST implement. This is very
    useful when classes are branching in packages and team of
    developers works on a large application among others.
    The general syntax for an Interface with method signatures is
    written the following way:
    package{
    public interface InterfaceName {
    // here we specify the methods that will heave to be
    implemented
    function method1 (var1:dataType,
    var2:datType,…):returnType;
    function method2 (var1:dataType,
    var2:datType,…):returnType;
    To the previous example:
    package{
    public interface IQualified {
    function method1 ():void;
    function method2 ():int;
    Let’s write a class that implements it.
    If I just write:
    package{
    public class ClassOne extends DisplayObject implements
    IQualified {
    public function ClassOne(){}
    I will get a compilation error that states that I did not
    implement required by the interface methods.
    Now let’s implement only one method:
    package{
    public class ClassOne extends DisplayObject implements
    IQualified {
    private function method1():void{
    return;
    public function ClassOne(){}
    I will get the error again because I implemented only one out
    of two required methods.
    Now let’s implement all of them:
    package{
    public class ClassOne extends DisplayObject implements
    IQualified {
    private function method1():void{
    return;
    private function method2():int{
    return 4;
    public function ClassOne(){}
    Now everything works OK.
    Now let’s screw with return datatypes. I attempt to
    return String instead of void in method1 in ClassOne:
    private function method1():String{
    return “blah”;
    I am getting an error again – Interface requires that
    the method1 returns void.
    Now let’s attempt to pass something into the method1:
    private function method1(obj:MovieClip):void{
    return;
    Oops! An error again. Interface specified that the function
    doesn’t accept any parameters.
    Now rewrite the interface:
    package{
    public interface IQualified {
    function method1 (obj:MovieClip):void;
    function method2 ():int;
    Now compiler stops complaining.
    But, if we revert the class back to:
    private function method1():void{
    return;
    compiler starts complaining again because we don’t pass
    any parameters into the function.
    The point is that interface is sort of a set of rules. In a
    simple language, if it is stated:
    public class ClassOne implements IQualified
    it says: “I, class ClassOne, pledge to abide by all the
    rules that IQualified has established and I will not function
    correctly if I fail to do so in any way. (IMPORTANT) I can do more,
    of course, but NOT LESS.”
    Of course the class that implements an interface can have
    more that number of methods the corresponding interface requires
    – but never less.
    MORE means that in addition to any number of functions it can
    implement as many interfaces as it is desired.
    For instance, I have three interfaces:
    package{
    public interface InterfaceOne {
    function method1 ():void;
    function method2 ():int;
    package{
    public interface InterfaceTwo {
    function method3 ():void;
    package{
    public interface InterfaceThree{
    function method4 ():void;
    If our class promises to implement all three interface it
    must have all four classes in it’s signature:
    package{
    public class ClassOne extends DisplayObject implements
    InterfaceOne, InterfaceTwi, InterfaceThree{
    private function method1():void{return;}
    private function method2():int{return 4;}
    private function method3():void{return;}
    private function method4():void{return;}
    public function ClassOne(){}
    Hope it helps.

  • Determine String encoding

    Hello folks,
    I have a problem with converting data to UTF-8.
    My task involves a Oracle database table with a long field.
    First of all, the data in this table can be Chinese/Japanese/English/Korean encoded.
    So when I retrieve the data, I will need to invoke:
    String localStr = new String(rs.getBytes(CONTENT_INDEX),"SJIS");
    String utf8Str = new String (localStr.getBytes("SJIS"), "UTF8");
    where rs is java.sql.ResultSet
    Then I will need to store the utf8 String to a new database table.
    Since the default encoding is "ISO8859_1" and that I have no idea whether the data is
    Chinese/Japanese/English/Korean encoded, how can I make the proper conversion?
    Since the data is in Long Field and I will have to use getBytes() to get the data and
    convert it to the local encoding.
    So I am asking if there is any way that I can determine what these bytes'
    original encoding was?
    Is there anything in Character class that I can make use of??
    Pls help.

    Thank your for your replies.
    My problem is that I have no idea whether the row of data I am getting is either Big5/SJIS/KSC5601/ISO8859_1 encoded, everything stores in one table while no column is used for indicating the encoding used.
    My client needs to upgrade their content management system which only able to interpret UTF8 data. So the old data needs to convert to UTF8 and store in a new table.
    E.g. SJIS (Japanese) to UTF8 to SJIS (again when shown on browser)
    Now the problem is that how to find out that these bytes are SJIS encoded originally???

  • JPA string encoding

    How can I tune the String encoding in JPA ?
    In some cases I need UTF8 encoding, in some cases I need UTF16.
    What annotation/attributes do we assign values to ?
    How do we do this? Thanks.

    javaUserMuser wrote:
    String encoding in the database.
    Why - because it is the right thing to do: I have decided that.still not clear, what does that have to do with JPA? that's something you would configure in your database, using database specific tools. the java layer doesn't really care how the database stores the strings.

  • Adobe XI won't open pdf in windows 7; needs file conversion to encode text. need help!

    adobe XI won't open pdf files in windows 7; error msg says it needs file conversion to encode the text. choosing any of the options available still does not open it. please note that the pdf's are attempting to open in WORD. if it needs to open elsewhere, then how to i make adobe open elsewhere every time? thanks!

    thank you mike.  i tried to follow your shared link to unisntall and re-install the software.
    now i can open pdf without any error msg.
    however.. the file context cannot be showned... which is in white screen only.. i tried to close and re-open the file, but still can't view the context correctly. could you please help? thanks.

  • I need Information about Grid

    Hello,
    The first, i don't speak english very well.... ;)
    the company for which work has 3 seats now, but is going to open 5 more.
    All these seats are small, and the cost to install Oracle in each one of them is very elevated.
    i would like to know to me if Grid Computing can help me centralizing everything in a Seat. The scalability is something very important. and i need have several instances of BD oracle up...
    I need information...
    Yo can write me to [email protected]
    Thanks in advance

    Hi.
    By seat, I assume you mean site or location.
    It's difficult to answer this type of question as it depends on so many factors. Personally, I would always go for the centralized solution. This way you don't need to worry about replication or distribution of data. Those things are always a nightmare.
    RAC is great for high availability, and it will allow you to increase your horsepower as and when you need it, but you still need to consider your performance erquierments up front.
    Of course, centralization comes with it's own set of problems. Are you going to connect to the central server via the web, VPN, leased line? What happens when the connection is unavailable?
    There is just so much to consider...
    Cheers
    Tim...

  • I need information about personal experience with DFS-R: shortcomings and limitaions of DFS-R

    Hello,
    We plan to install DFS-R in our organization.
    I need information about personal experience with DFS-R: shortcomings and limitations of DFS-R.
    Thank you for any info. 

    Hi,
    You could refer to the articles below to see some limits about DFSR and some DFSR configuration mistakes which will cause DFSR problems:
    Understanding DFS Replication "limits"
    http://blogs.technet.com/b/filecab/archive/2005/12/12/understanding-dfs-replication-_2200_limits_2200_.aspx
    Common DFSR Configuration Mistakes and Oversights
    http://blogs.technet.com/b/askds/archive/2010/11/01/common-dfsr-configuration-mistakes-and-oversights.aspx
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I need information about reports

    hi gurus,
      i need information about Trending reports and Management reports. Can any body provide me the scenario regarding this issues:

    Hi
    Trend reports are the reports which show a certain trend all over the years
    Say, Sales revenue for the year compared to all the previous years...This show what is the trend in the last few years
    Management reports high level reports with summarized data which helps in decision making. Say, Vendor performance report...this report shows list of default vendors by ranking them and management can decide to continue or not to continue with certain vendors
    Regards
    N Ganesh

  • I need information regarding the creation of Workbook and WAD.

    Hi,
    I need information regarding the How to create the Workbook and WAD.
    Can any one help me to get the information..
    Regards,
    Suman
    Edited by: Suman Reddy Vuyyuru on May 19, 2009 8:22 AM

    Hi,
    for workbook:
    [Queries in Workbook|http://help.sap.com/saphelp_sem40bw/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
    for WAD:
    [WAD for Beginners|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/749a4622-0a01-0010-36bf-b6b30a2a3a22]
    thnks.

  • I need  information  about  oops  concept  programming  in abap

    Hi  ,
    I need  information  about  oops  concept  programming  in abap
    Thanks,
    Asha

    Of course, the best place to start is help.sap.com.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
    There are a couple good books out there as well.  You can get them at www.amazon.com
    Regards,
    Rich Heilman

  • I need information on my bill, for the last two yrs, how do i go about looking for it

    i need information on my bill for the last two yrs, how i go about looking for it . thanks\

    The last 12 months' worth can be obtained via your on-line MyVerizon account; look under View Bill and use the drop-down to select the appropriate bill.  Anything prior to the past 12 months would need to be obtained via Customer Service; there is a charge (I believe $5 per copy, but I'm not sure).

  • I need information about Web dynpro ABAP Exception : ICF Service Node

    I need information about Web dynpro ABAP Exception :
    ICF Service Node "/sap/bc/webdynpro/sap/abcd/undefined" does not exist.
    Here abcd is application name.
    ICF Service Node exists and activated but kindly let me know from where "undefined" is coming .
    Please let me know your comments /views about  this.

    Hi,
    I think ur webdynpro service is not active after upgradation.
    You have manually activate it.
    Go go Tcode SICF,Execute the Initial screen,
    and in this new screen give service  as your application name and click on filter.
    You will get your service below which will be ur application name .
    right-Click on the deactivate and activate it or just activate it,.
    This shd work

  • I need information about ESS and Training and Work Experience

    I need information about ESS and Training and Work Experience.
    Anyone know if  there is something inside of the component ESS about Training and Work Experience (infotypes 22 and 23)?
    I appreciate information.
    Thanks.

    Marciano,
    check this documentation
    http://help.sap.com/saphelp_erp2005/helpdata/en/4d/c19ce6ef2842258283afc35a54172a/frameset.htm
    Thanks
    Bala Duvvuri

  • I'm a Microsoft Outlook for Mac user, I need information of how to know when e-mail was readed and confirm receipt of e-mails sent. thank you!  regards Mauricio

    I'm a Microsoft Outlook for Mac user, I need information of how to know when e-mail was readed and confirm receipt of e-mails sent. thank you!  regards Mauricio

    Mail and Address book

  • Need information about "Activation Task"

    Hi at all
    I need information about "HOW" the activation task work. I try to found information on Metalink and I can't found anything. Who anyone show me where I can find this information?
    The information from Design Studio are not enough.
    Thanks in advice
    Luis
    Edited by: Luis_ITA on 9-giu-2011 10.35

    Hi Luis,
    Following are the resources you can use to seek information about Activation Tasks:
    1. Following link is from OU that provides an overview of the Activation Task:
    http://ilearning.oracle.com/ilearn/en/learner/jsp/rco_details_find.jsp?srchfor=1&rcoid=920335765
    2. Design Studio Online Help provides comprehensive description about the task – what is it, how to use it, different compensation modes etc.
    Thanks,
    Deepankar (Deep) Dey
    OSM- Product Management

Maybe you are looking for

  • IMac G5 Graphic Card Replacement for blue screen problem

    When I turn on iMac, I only see blue screen, the apple technician said Need to replace graphic card,  Nvidia Gforce 7600GT 256. 1, can it install in IMac?  Seem like it work for PC? 2,  I had blue screen problem several time,  I think I turn on iMac

  • How to access my video stream on icloud from mac

    I have pictures and videos on my shared stream that I took/recorded from my iPhone 5S. I don't know how to access these files from may MacBook Pro because I want to move these files to my hard drive on my MacBook Pro. Please help. Thank you!

  • No Values for 0COPC_C04

    Dear All, Im in a Strange situation kindly help me. I have successfully loaded the data to the  cube - 0COPC_C04(standard cube)using the following data sources 0CO_PC_ACT_02 0CO_PC_ACT_05 Customers business started fron Mar 2008, but the the reports

  • InDesign PDF Presets Bug

    Hello everyone, I have noted this problem since cs5 version came out but I am reporting it now. Well, here is the thing: if I have some multi page or single page document in InDesign and I want to export it in some of Adobe PDF Presets for printing f

  • APP download, then  time machine RESTORE, froze; results: Grey Apple screen

    I have a macbook 13" albumin unibody-(late 09) configured w/ a 45 nm Penryn 2.26 GHz Intel Core 2 Duo processor250 GB Serial ATA (5400 RPM) hard drive. Yesterday, I decided to finally buy a good external hard drive to backup my macbook. I used time m