Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Basic4ppc Wishlist
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Basic4ppc Wishlist Missing any feature?


Text properties Ansi, UTF-16


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-20-2007, 08:07 PM
Knows the basics
 
Join Date: Dec 2007
Posts: 69
Awards Showcase
Beta Tester 
Total Awards: 1
Default Text properties Ansi, UTF-16

It would be nice to have the following, additional properties for the TextBox:
bold
italic
and for file open:
cASCII already exists, but
Ansi and UTF-16 left.


Best Regards
berndgoedecke
Reply With Quote
  #2 (permalink)  
Old 12-21-2007, 05:34 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,141
Default

Note that you could set bold and italic (and other properties) using FormLib library.
Reply With Quote
  #3 (permalink)  
Old 12-21-2007, 08:35 AM
Knows the basics
 
Join Date: Dec 2007
Posts: 69
Awards Showcase
Beta Tester 
Total Awards: 1
Default Ansi and UTF-16

and what is about Ansi and UTF-16 - file open
Or is there an other way or Lib to convert to
UTF-8.
It's because of the UTF-16 encoded SQLite Dtabase.
Showing datas in the textbox let fail the special letters like "ä" "ö" "ü" etc.
Reply With Quote
  #4 (permalink)  
Old 12-21-2007, 11:49 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,141
Default

It is possible to convert a complete file from UTF-16 to UTF-8 (using BinaryFile and Bitwise libraries).
However, if this is a database file you can't treat it as a text file.
Please try the following connection string:
Con.Open("Data Source = " & AppPath & "\Northwind.sl3;UseUTF16Encoding=True")

Replace the database name with your database file.
Reply With Quote
  #5 (permalink)  
Old 12-21-2007, 02:15 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 141
Default

I feel like I am missing something here.

"It's because of the UTF-16 encoded SQLite Dtabase.
Showing datas in the textbox let fail the special letters like "ä" "ö" "ü" etc."

I can enter ö, ä, å etc in a textbox, store that in a SQLite database and close the program, open it again and retrieve the letters to a textbox (via a table) without any problems and without using the "UseUTF16Encoding=True".

all the best / Björn
Reply With Quote
  #6 (permalink)  
Old 12-21-2007, 02:53 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,141
Default

Basic4ppc uses UTF-8 by default.
UTF-8 supports all characters.
UseUTF16Encoding should be used when you get a database that you didn't create (at least not with Basic4ppc) and it is encoded with UTF-16.
Reply With Quote
  #7 (permalink)  
Old 12-22-2007, 12:24 AM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 141
Default

Aha, then I understand. Thanks.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Properties module - useful module for working with properties / ini files Erel Code Samples & Tips 0 11-07-2008 09:01 PM
Label/Text Control text centering TWELVE Basic4ppc Wishlist 1 06-04-2008 04:20 PM
Probleme mit LoadCSV und ANSI - UTF-8 Holger.D German Forum 2 05-13-2008 08:23 PM
In VB usually objects have a lot of properties... Rod Questions & Help Needed 3 08-23-2007 01:43 PM
More properties for panels RandomCoder Basic4ppc Wishlist 0 07-12-2007 09:48 PM


All times are GMT. The time now is 08:45 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0