image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old May 19th, 2008, 07:24 AM
Registered User
 
Join Date: May 2008
Posts: 1
mac0512 is on a distinguished road
Unicode support

Hi,
I want to provide an unicode support for the application so that languages other than english can be support eg korean.
I want to convert an ascii to utf16 string and then convert utf16 to utf8.
this utf8 string is used in fopen to open a file.
And also how do i open
Reply With Quote
  #2  
Old May 20th, 2008, 01:33 PM
Registered User
 
Join Date: Mar 2005
Posts: 185
artov is on a distinguished road
I used glibmm (http://www.gtkmm.org/documentation.shtml) on a project to collect user information (how much they used
computers etc.) to a database. Since the machines were different kinds of Unix servers and
the database was Microsofts SQL Server, I used glibmm's usting, which converts different
encodings to UTF-8. The catch is, glibmm is for C++ and you did not told what language
you are going to use.
Reply With Quote
  #3  
Old May 20th, 2008, 06:27 PM
ksv's Avatar
ksv ksv is offline
liberal socialist
 
Join Date: Nov 2000
Location: Trondheim, Norway
Posts: 2,999
ksv is on a distinguished road
Which language are you using? iconv does character set conversion and is available through C languages and many script languages. Check out 'man iconv' in the Terminal.
__________________
leo at code.coop

Co-operatives are private corporations based on the values of self-help, self-responsibility, democracy, equality, equity and solidarity.
Reply With Quote
  #4  
Old May 21st, 2008, 01:58 AM
Registered User
 
Join Date: Mar 2007
Posts: 38
yogish is on a distinguished road
Need help following issue in mac for the unicode support:

1. API to open a drive ( "/dev/disk...") with unicode path (unsigned short ) and get the handle of it.
2. Using the handle for read/write operation.
3. To get a FSRef of file with unicode (unsigned short) filepath.
4. To display the unmounted drive , the api is CheckForRemovableMedia .
This api is not supported, looking for the replacement call.
5.UTF16 To UTF8 conversion without dataloss
6.UTF16 To Ascii conversion without dataloss.

Thanks.
Reply With Quote
  #5  
Old May 23rd, 2008, 01:02 AM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,452
Viro will become famous soon enoughViro will become famous soon enough
This sounds like a homework question, if I may say so ...
Reply With Quote
  #6  
Old May 23rd, 2008, 01:06 AM
Registered User
 
Join Date: Mar 2007
Posts: 38
yogish is on a distinguished road
i want to know mac api to get fsref of volume/directory so that i can do fsread/fswrite on the volume/directory.

Any help will be appreciated.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 02:57 PM.


Mac Support® Version 3.7.0 Beta 5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.