Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

howdy !

 

i have some issues using the "memo" data type in MSaccess (or even text files, for that matter) because when i load data in a textbox or label :

 

1. all my paragraph info is gone. the text appears as one big block.

2. a lot of special characters aren't displayed (é, à, and so on)

 

i've tried tweaking with different types of encoding (ascii, utf8 etc) but that doesn't solve anything...

 

anyone ?

 

thanks for reading. hope your day is a fine one :D

 

Huby.

there are 10 kinds of people on earth:

those who understand binary, and those who don't.

Posted

Don't know about #2...

 

but for #1:

you have to replace vbCrlf (or \n in C# i think) with a html linebreak ("<br/>")

If you make it idiot proof, they'll build a better idiot :-)
Posted (edited)

I know that if you use special caracter like "é à ê" you'll have to use :

 

HttpUtility.HtmlEncode(string)

 

This is under System.Web.

Remember not to put your flag (<b> <p>) inside that or they'll be encoded.

 

using this will return an instance of a string which all caracter that aren't normally showed in Html page are replaced by something like &215; (or something else).

 

Hope it helped you a little bit.

Edited by Arch4ngel

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

Posted

Yeah I mean that ! lol

Sorry I'll correct it.

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...