Unicode in SQLite and AIR

Hi guys
I want certain columns in my SQLite database to be able to accept unicode characters such as • and accented characters such as á. Is this possible in the SQLite version that AIR uses?
If so, what do I need to use when setting up my tables...
                                 "CREATE TABLE IF NOT EXISTS tester10 (" +
                                 "    id INTEGER PRIMARY KEY AUTOINCREMENT, " +
                                 "    Col1 NVARCHAR, " +
                                 "    Col2 NVARCHAR, " +
                                 "    Col3 NVARCHAR" +
I thought NVARCHAR would do it, but it's entering the bullet point like: • and accented á like: Ái
Thanks for your help.

This may help ( http://www.sqlite.org/faq.html#q18 ):
quote:
(18) Case-insensitive matching of Unicode characters does not work.
The default configuration of SQLite only supports case-insensitive comparisons of ASCII characters. The reason for this is that doing full Unicode case-insensitive comparisons and case conversions requires tables and logic that would nearly double the size of the SQLite library. The SQLite developers reason that any application that needs full Unicode case support probably already has the necessary tables and functions and so SQLite should not take up space to duplicate this ability. 
Instead of providing full Unicode case support by default, SQLite provides the ability to link against external Unicode comparison and conversion routines. The application can overload the built-in NOCASE collating sequence (using sqlite3_create_collation()) and the built-in like(), upper(), and lower() functions (using sqlite3_create_function()). The SQLite source code includes an "ICU" extension that does these overloads. Or, developers can write their own overloads based on their own Unicode-aware comparison routines already contained within their project.

Similar Messages

  • Sqlite and AIR

    Hey guys/girls... we're attempting our first Air app, so I apologize for the noobish question on best practices.
    We're going to use Sqlite for application data storage and have created the database. We aren't sure of the best way to deliver this database to the user when the app is installed.
    Should we check if the db file exists and then create it with SQL statements if it does not? Or should we just package the db with the app and copy it to the application storage directory on installation like this:
    var dbFile:File = File.applicationDirectory.resolvePath("db/software.db");
    var dbWorkedFile:File = File.documentsDirectory.resolvePath("software.db");
    if(!dbWorkedFile.exists){
    // you can also overwrite db file setting the default boolean params in copyTo method
    dbFile.copyTo(dbWorkedFile);
    When the app is uninstalled, how will it know to remove this db as well?
    If anyone could help us out it would be very much appreciated! We're just trying to learn and haven't found any documentation on best practices for this.

    both ways are possible, I think it depends on the initial data stored in DB - if its should be empty by default, you can create table structures during initial application run  by calling "CREATE TABLE IF NOT EXISTS" statements. If you need to have a lot of data there - its better to include it to application package, you don't need to copy it anywhere and it will be deleted automatically if user unistalls the application, because its one of the application files.

  • The difference between AIR-ANT5135D-R and AIR-ANT5135DB-R

    Hi,
    Anyone know what is the difference between AIR-ANT5135D-R and  AIR-ANT5135DB-R ?
    From the dynamic configuration tools for 1252 and 1242, AIR-ANT2422DB-R is inside one of the antenna option.
    However, I can't find it in the "Cisco Aironet Antennas and Accessories Reference  Guide"
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/product_data_sheet09186a008008883b.html
    Inside the document there is only AIR-ANT5135D-R.
    likewise for the 2.4 GHz,  AIR-ANT2422DB-R is inside the dynamic configuration tools and not inside "Cisco Aironet Antennas and Accessories Reference  Guide"
    Any help would be appreciated
    Thanks,
    Richard

    Found the difference, AIR-ANT5135DB-R and       AIR-ANT2422DB-R are  non-articulating antennas.
    Thanks!
    Richard

  • Can I manually back up cookies.sqlite and use that file to restore my important cookies after a HD reformat?

    I read the first suggested article before posting this question, but it wasn't specific enough so I was forced to comment, "This article fails to specify use of the backed up file in the event of a system/HDD reformat." The article reveals that the profile folder name must match (match WHAT in this scenario?), but does not reveal if any of the files within the profile have that specific identification embedded in them [which might result in logical error or error messages, and failure to accomplish desired goal]. It also does not say if all I want to do is back up the cookies, whether or not will backing up cookies.sqlite and placing it in the new default profile after the system reinstallation/hard drive reformat work.
    Let me get more general in the event I'm not communicating what I wish to: I don't want to use a confusing, perhaps badly-written Firefox add-on to do this. I have a few secure sites I visit that give me a really hard time when I update or reformat, like my bank and NetFlix. Both parties CLAIM that I am "attempting to access your account from a different computer," but their security protocol writers are MORONS and liars, because it is NOT a different computer; instead of storing the STATIC MAC address of my computer, which DOES identify the specific computer attempting access, they store a number of different bits of data which are VOLATILE and DYNAMIC [in cookies], and I have to go through this bullcrap of accessing my email account and entering in a verifying one-time-use code to get to my own [epithet for solid waste matter]. So, will I be able to do what I want just by manually backing up cookies.sqlite and placing it in the appropriate directory when needed? It should be a very simple matter for these idiot security experts to query systems for the MAC addresses or to get users to supply it manually (it's easy to find), but NO! That would make SENSE, be EASY, and MORE EFFECTIVELY MANAGE THE SECURE NETWORKS. My idiot bank does not even allow the use of special characters necessary for the creation of sophisticated passwords [that would take over a quintillion years to hack via a Brute Force attack].

    You can backup specific files from the Firefox Profile Folder and restore them when needed.<br />
    This shouldn't pose a problem wit SQLite database files like cookies.sqlite.<br />
    With other files you may have to be more cautious though.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    You may want to backup the permissions.sqlite file that stores exceptions for cookies, images, pop-up windows, software installation.

  • Purchase Order Dashboard using Adobe Flex and AIR

    Hi ,
      I have written a AIR apps for displaying the Purchase Order using OPen source Flex and AIR making Web Service calls to our SAP R3  6.20 Backend System . If anybody would be interested in taking a look at it and expanding the apps please free to post at those forum with the your email ID . I can send the AIR apps along with the source code .
    Thnks
    V

    I have uploaded the zip file containing my code . If anybody is interested can download from this link .
    http://www.mediafire.com/?8mfesdczsuv
    Vinod

  • Hi, I'm using a Mac Pro here. I am trying to connect it with my NAS hard drive. But i could not connect to it because i have an ethernet which connects to the intranet in my company and Air Port for the internet.

    Hi, I'm using a Mac Pro here. I am trying to connect it with my NAS hard drive. But i could not connect to it because i have an ethernet which connects to the intranet in my company and Air Port for the internet and it could not detect the the ip address after i input the correct address on "Connect to Server" window. Please help! Urgent! Thanks

    I did not say it is not possible.
    I said if your company networks are monopolizing both ports, you should talk to them about what options are available.
    Maybe you can get the company Intranet over wireless if you change some configuration items such as Subnet Mask.
    Maybe you can get on the Internet over Ethernet.
    You really need to ask them, and do not let them blow you off because you have a Mac. If they balk, ask them how it would be done on a PC (becasue it will be the same on a Mac).

  • Iphoto continually quit on MBP and Air, now won't reinstall on Air

    I have a MBP and Air with ilife 08 and all the latest apple software updates on each.
    For about three weeks iphoto has been shutting down on either computer whenever i email a photo, or download and save a photo from the internet.
    Today i removed iphoto from both computers and reinstalled.
    After reinstalling my MBP it seemed to work fine, only shutting down once in about 15 emailed photos (as compared to every time previosuly). Thinking all was well (or at least acceptible) I went ahead and installed the three updates from apple via the software updater in system preferences. After i installed the automatic updates and used iphoto again, it shut down every time i emailed a photo. At that point I uninstalled the iphoto and reinstalled it without the latest apple updates. It seems to work fine now.
    So, I tried doing the same thing on my air, but now iphoto won't reinstall, even though each time at the end of the process it tells me the install was successful. The first two times I only uninstalled (dragged to trash) iphoto, but the next two times i also dumped garageband, iweb, and idvd. Each time these programs were reinstalled, but not iphoto. When I search on iphoto no results.
    Any ideas on how to get iphoto back on my air? I am using remote disk and have never had any previous problems with it, and obviously the other programs reinstalled fine.
    Thoughts on why iphoto won't work with the latest apple updates installed?

    fishbio:
    Before reinstalling iPhoto make sure you've deleted all files with iPhoto in the file name that reside in the HD/Library/Receipts folder. Otherwise the installer will think that iPhoto already exists and doesn't need to install.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Flex SDK and AIR runtime version in mobile

    Hi, guys.
    I'm trying to make my first Flex mobile app.
    I'm a little confused about the relationship between Flex SDK and AIR  runtime versions for mobile development.
    In the "Developing Mobile Applications with ADOBE FLEX 4.6 and ADOBE FLASH BUILDER 4.6" pdf document, it says:
    "AIR requirements
    Flex mobile projects and ActionScript mobile projects require AIR 2.6 or a higher version. You can run mobile projects on physical devices that support AIR 2.6 or a higher version of AIR.
    You can install AIR 2.6 or a higher version only on supported Android devices that run Android 2.2 or a higher version. For the complete list of supported Android devices, see Certified Devices. Also, review the minimum system requirements to run Adobe AIR on Android devices at Mobile System Requirements.
    Note: If you do not have a device that supports AIR 2.6 or a higher version of AIR, you can use Flash Builder to launch and debug mobile applications on the desktop."
    So, I go and check the Certified devices in http://www.adobe.com/devnet-apps/flashruntimes/certified-devices.html and find that the minimun FLASH PLAYER version accepted by ALL devices is FP 10.1
    1. Does this mean that if I want to release an app to target ALL mobile devices, then I can only use Flex 4.5?
    2. Do support for Flash Player mean the same than support for Adobe AIR? Or the application will prompt the user to install whatever version of the AIR runtime and all of them would be supported by the device, even in the FLASH PLAYER support is for a lesser version?
    Thanks!

    Thanks for your help, Flex harUI,
    The first impression that comes to mind is that FP version is indeed only for the web browser plugin. Then, why does the official Flex 4.6 mobile development documentation have a link to that page that only speaks about the supported FP version in mobiles under the title "AIR requirements"??
    This makes it way too confusing.
    Do you know whether there is something like an equivalent matrix/list of mobile devices with their supported AIR runtime versions?  I went a great deal in trying to keep my original app under 400kb... I didn't know that in the end it would end up weighing 9.5Mb... :S
    Thanks again,

  • I downloaded the iOS7 system and lost connectivity to my in-ceiling speakers and Air Play. How do I get it back?

    I downloaded the iOS7 system and lost connectivity to my in-ceiling speakers and Air Play. How do I get it back?

    Use the iOS7 Control Center to select AirPlay, and then, choose the appropriate AirPlay speaker to stream to.

  • How to install and use the Khmer unicode Khmer MEF1 and Khmer MEF2?

    How to install and use the Khmer unicode Khmer MEF1 and Khmer MEF2?
    from www.mef.gov.kh in the bottom of the page, you can get the unicode for the ms office

    I think that stuff is for windows, a waste of time trying to use it on a Mac.
    There is no need to download anything for Khmer on a Mac.  Apple provides Khmer fonts and keuyboards with OS X.
    OS X Mountain Lion: Type in another language
    MS Word for Mac does not support Khmer.  Use TextEdit, Pages, Nisus Writer, LibreOffice instead

  • What is best blue tooth presenter for macbook pro and air

    What is best Blue Tooth presenter for MacBook Pro and Air?

    You got lots of choices such as:
    WD Studio
    http://www.wdc.com/en/products/products.aspx?id=200
    WD Studio 2
    http://www.wdc.com/en/products/products.aspx?id=210
    WD My Book
    http://www.wdc.com/en/products/products.aspx?id=250
    Lacie:
    http://www.lacie.com/dk/products/range.htm?id=10007
    http://www.lacie.com/dk/products/range.htm?id=10036
    The are tons of external storage for mac out there but these are a few of them...
    I personally like the WD Studio 2 and the LaCie 2big Network 2

  • My iPhone5 is my wifi hot spot for my mac mini computer and iPad. I live in a rural area. Will this be sufficient to run apple tv and air play?

    My iPhone5 is my wifi hot spot for my mac minim computer and iPad. I live in a rural area with no other options. Will this be sufficient to run Apple TV and air play?

    If you are intending using your hot spot to download movies for the Apple TV, you'll very quickly eat through your data allowance.

  • I need to work on documents in both my iMac and air book. But I have to download document and them upload it, and when I upload it I can't open it unless I open it on my phone first. Yet changes made on phone appear straight away. Does this make sense????

    I need to work on documents in both my iMac and air book. But I have to download document and them upload it, and when I upload it I can't open it unless I open it on my phone first. Yet changes made on phone appear straight away. Does this make sense????

    On your Macs open System Preferences > iCloud
    Deselect the box next to Documents & Data, then reselect that box then restart your Macs.
    On the iPhone tap Settings > iCloud. Switch Documents & Data off then back on then reset the iPhone.
    Hold the On/Off Sleep/Wake button and the Home button down at the same time for at least ten seconds, until the Apple logo appears.
    See if you can open the files now without opening on the iPhone first.

  • Using project libraries for both web-based and AIR applications

    I need to develop substantial code to build both web-based and AIR applications.  Yes, they will have different features, especially when it comes to accessing files on the local file system.
    However, 98% of the code can be shared.
    I want to use a project library that can be used for both types of applications. Maybe using conditional compile when required to not use AIR API's in a web-based application.
    I found this (somewhat old) warning:
    Include Adobe AIR libraries Select this option if your library must use AIR features, such as access to the AIR APIs. Flex Builder then changes the library path of this new Flex Library project so that it includes airglobal.swc and airframework.swc. Web-based Flex projects cannot use this library.
    Do not select this option if you are writing a generic library intended to be used only in a web-based Flex application, or in either a web-based or AIR-based application.
    Does this apply to Flash Builder 4.5?

    I have found a workaround, but it's quite clumsy, involving a transfer vector (in old-fashioned terms) in the main application for each function in the AIR library.
    I have created a library for AIR classes only (fourdtext.fileOperations is there). 
    The AIR application provides "Function" values that any other code in the general-purpose libraries can use.
    It works, but it's nasty.
    In Main.mxml:
    import com.fourdtext.fileOperations.AxFiles;
    // this gets a list of native path strings, from and array of "File" objects
    public var AxGetListFunction:Function = AxGetListRedirect;
    private function AxGetListRedirect(list:Array):Vector.<String>{
        return AxFiles.AxGetList(list);
    In general-purpose code:
    var list:Array = event.dragSource.dataForFormat("air:file list") as Array;
    var AxGetList:Function = FlexGlobals.topLevelApplication.AxGetListFunction;
    listFiles = AxGetList(list);

  • Sharing code between Flex and AIR versions using library project

    Hello everyone,
    I'm developing an application that has both Flex and AIR versions. In order to share code between these apps, I created a library project and added all my code there. Now I've set the library project as a dependency for both Flex and AIR projects. Since there are some components that use the DataService object, I've added fds.swc and fds_rb.swc and fiber_rb.swc modules to the libs directory of the library project. No compile errors. Now, if I try to run my Flex application, I'm getting this error:
    Variable mx.data::LocalStoreFactory is not defined.
    I know that this error comes up when playerfds.swc is not present in the path. But that is not the case here. I have added playerfds.swc, fds.swc and related lib files to the build path.
    If I go back and add the playerfds.swc file to the original library project, the error no longer appears. This is not a proper solution for me, since I need to share this project with AIR version also, and I cannot have both playerfds.swc and airfds.swc in the same project.. Has anyone faced an issue like this before?? What am I doing wrong??

    Hello everyone,
    I'm developing an application that has both Flex and AIR versions. In order to share code between these apps, I created a library project and added all my code there. Now I've set the library project as a dependency for both Flex and AIR projects. Since there are some components that use the DataService object, I've added fds.swc and fds_rb.swc and fiber_rb.swc modules to the libs directory of the library project. No compile errors. Now, if I try to run my Flex application, I'm getting this error:
    Variable mx.data::LocalStoreFactory is not defined.
    I know that this error comes up when playerfds.swc is not present in the path. But that is not the case here. I have added playerfds.swc, fds.swc and related lib files to the build path.
    If I go back and add the playerfds.swc file to the original library project, the error no longer appears. This is not a proper solution for me, since I need to share this project with AIR version also, and I cannot have both playerfds.swc and airfds.swc in the same project.. Has anyone faced an issue like this before?? What am I doing wrong??

Maybe you are looking for

  • Unable to edit photo in event

    unable to edit, move or drag photo  located in an event

  • Table data joins

    hi all, i have 2 table tab1 and tab2 with data like tab1: SR     Description 1 A1 B1 C1 34 K1 K3 tab2: id SR Decription 1 1 A1 2 B1 3 C1 4 34 K1 5 K3 My requirement is like I need to write update query or pl/sql to make tab2 like id SR Decription 1 1

  • Mail app will not open

    I have just tried to change over to the Mail app instead of AOL mail, and I can't get Mail to open. I have installed the 10.4.7 update after repairing permissions, with no apps open. There appears to be no crash log, although I do get the following i

  • Logging into SQLPLUS as SYS...

    Hello there, its time for another question from your latest clueless forumer! After getting help for another question I had, I was instructed to log in as SYS... Now I read somewhere that this is NOT the same as logging in as System, so what exactly

  • I used to get 4g, now only getting 3g

    I used to get 4g, now i am only getting 3g.  What happened?