Click on this icon to open the XML page.Tom Van Gaever - Blog
Search:   

Special Characters (é,ç,à, ... , è) not readable in mail sent from SharePoint 
Tuesday, November 30, 2010, 08:36 - SharePoint
Posted by Administrator
Change the character set in Outgoing E-Mail Settings from the Central Administration to the appropriate setting.

MSDN:
When you configure outgoing e-mail, you will need to specify the character set to use in the body of e-mail messages. A character set is a mapping of characters to their identifying code values. The default character set for outgoing e-mail is Unicode UTF-8, which allows most combination of characters (including bidirectional text) to co-exist in a single document. In most cases, the default setting of UTF-8 works well, although East Asian languages are best rendered with their own character set.

We switched from Unicode UTF-8 to 1252 Western Europe (Windows) and it worked perfectly without changing the code of that project.

Credits to Mathias Verlee and his statement 'The problem is most likely not the code, but configuration'. ;)

1 comment ( 37 views )   |  permalink   |   ( 3 / 8702 )
SharePoint 2010 and XSL - The XML Viewer Web Part - Weather Information - Lesson 1 
Sunday, October 17, 2010, 20:07 - SharePoint
Posted by Administrator
In SharePoint 2007 we could very quickly create a powerful solution without using a single line of server code. The key component for this solution was using SharePoint Designer, the Data View Web Part and XSL. In SharePoint 2010 they have provided us with a web part that allows providing the specific location of an xml file and the location of an xsl file.

The location of the xml file can of course be any link that provides xml, for this demonstration I would like to keep it easy and show that SharePoint 2010 has the mechanisms provided to communicate with other external systems.

1) Add an XML View Web Part to your SharePoint page and open the properties pane


2) Specify the following url in the XML link textbox (http://www.google.com/ig/api?weather=Brussels). As you can see in the url, I've provided Brussels as current location. Of course you are free to provide the city where you are currently located to retrieve your local weather forecast.


3) Provide the following lines of xml in the XSL editor (this xsl will retrieve all the transform all the data from the xml, but there is no css style applied


	
		
		
		
		
			
			http://www.google.com:value-of select="xml_api_reply/weather/current_conditions/icon/@data"/>
			
		
		
		
°C
http://www.google.com
min: °C - max: °C


4) The next xsl snippet has some Cascading Style Sheet embedded. Feel free to reuse it as a base for your own custom style.


	
	
		
		
		
		
		
Current
http://www.google.com
°C
Forecasts
http://www.google.com
min: °C - max: °C


This should be the result in your page:


The web part can also be downloaded from here;
http://tomvangaever.be/blog/sp2010/tvg- ... ebpart.dwp


6 comments ( 145 views )   |  permalink   |  related link   |   ( 3 / 8426 )
Important: ASP.NET Security Vulnerability  
add comment ( 41 views )   |  permalink   |  related link   |   ( 2.9 / 1613 )
JQuery and IE6: Xml result from webservice could not be parsed using find() 
Monday, September 20, 2010, 08:25 - SharePoint
Posted by Administrator
Although IE6 is not supported by SP2010 I don't want to eliminate all the IE6 users from my webpart. This webpart is calling a Siebel webservice with data regarding the current loggedin user.

While developing in IE7 everything was perfect (both FF and IE worked like a charm, but IE6 didn't show a single result, but also no errors)

It seemed that the XML traversing did not work in IE6, after using my favourite search engine I found this wonderfull script that would help solve my issue very efficient!

    var DataUtilities = (function() {
    //Privileged variables and methods
    var self = {
    "processXML": function(xml) {
    if (!jQuery.support.htmlSerialize) {
    //If IE 6+
    var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.loadXML(xml);
    xml = xmlDoc;
    }
    return xml;
    }
    };
    return self;
    })();


it is very easy to use

var xml = DataUtilities.processXML(xData.responseText);


After adding this little fix it worked like a charm again!


1 comment ( 26 views )   |  permalink   |  related link   |   ( 3 / 1507 )
Create SharePoint Service Accounts By Using PowerShell 
Friday, July 23, 2010, 11:19 - SharePoint
Posted by Administrator
This script will automate the process of service accounts creation in SharePoint 2010. The solution exists in 2 parts. The first part is a CSV file, called sp2010_service_accounts.csv, where you can specify the service accounts you need. The second part is a powershell script called SP_ServiceAccounts.ps1.

1) Download the zip file from here (http://tomvangaever.be/blog/powershell/ ... rShell.zip)

2) Extract the script to, for example, c:\yourname

3) Run powershell and navigate to c:\yourname


4) Execute SP_ServiceAccounts.ps1

- When you receive an error saying that you cannot execute the powershell script, please enter Set-ExecutionPolicy Unrestricted.The reason for this error is the security setting on your pc that does not allow you to execute a script. This is the so-called Execution Policy. By default, the Execution Policy is set to Restricted. This setting means that you may not run any PS1 script at all.

An overview of the policy levels:
Restricted: Individual cmdlets can run, but not saved Powershell scripts. This is the default setting.
AllSigned: Scripts can run, but must have a digital signature even if written on the local computer. Prompts you before running scripts from trusted publishers.
RemoteSigned: Scripts written on the local computer do not need a digital signature, but any script downloaded from outside (email, IM, Internet) must have a signature to execute.
Unrestricted: Any script can run, but scripts downloaded from outside will run with a warning.


- The first parameter you need to specify is the OU you would like to create for the service accounts.
(for example: SP Service Accounts)

- The second parameter is the location of the csv file containing the service accounts.
(for example: c:\yourname\sp2010_service_accounts.csv)



5) When everything went right, the service accounts specified in the CSV file are created for you in 5 seconds.


Job's done!

PS: I've included the service accounts in the CSV file for you ;)
add comment ( 14 views )   |  permalink   |  related link   |   ( 3 / 1630 )

<<First <Back | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Next> Last>>