Get Blogged by JoKi

"The only frontiers are in your mind"
11 | 03 | 2010
Navigation
Syndication
Most Read Articles
Related Resources
Article Time Line
Visitors
Validation

Valid XHTML 1.0 Transitional
Valid CSS!

Spacer for layout formatting
Transfer of articles re-loaded PDF
User Rating: / 0
PoorBest 
General
Sunday, 24 February 2008 13:16
Thanks to my reader's feedback I modified the conversion routine of the article transfer from the MySQL database to XML. As the content of this blog is now UTF-8 encoded my article content has to fullfil this as well. So, using VFP this takes just another function call - Strconv() - with the right parameters.

What I did is to change two lines of code in the XML template block for the output:
<Content><<Strtran(Strconv(Strconv(Alltrim(p_summary),1),9), Chr(13)+Chr(10), "&"+"lt;br"+"&"+"gt;"+Chr(13)+Chr(10))>></Content><Title><<Strconv(Strconv(Alltrim(p_title),1),9)>></Title>
That's all. Strconv() converts characters into different encodings. You might have a look at the documentation in VFP's help file.


Sincerely, JoKi

 
Spacer for layout formatting
About me
Microsoft Most Valuable Professional 2007 & 2008

Microsoft Certified Professional

Get in contact

Follow Jochen Kirstaetter (JoKi) on Twitter JoKi @ ICQ JoKi @ Skype


Recent books

  • MCTS 70-536 - .NET Framework 2.0 Application Development Foundation
  • Code-Centric: T-SQL Programming with Stored Procedures and Triggers
  • Microsoft .NET Framework-Programmierung in C#

Community

deutschsprachige FoxPro User Group

Microsoft Community Leader/Insider Program

International .NET Association

O'Reilly Verlag
Sponsoring
If you like the information on these pages, your support is highly appreciated.
Thank you very much!