<!--#include file="CodePageCharsetConstants.inc" -->
<%
'******************************************************************************
' File:		/NR/System/WBC/Customizable/WBCFuncPagesConfig/MLSDisplayConfig/
'			/RevisionBrowserConfig.inc
' Author:	Microsoft Corporation.
' Purpose:	Set up the the CodePage and Charset setting for the site browsing
'			of the "Revision History" (Compare Revision Dialog).
'
'******************************************************************************


' -------------------------------------------------------------------------
'	[PUBLIC] For site admin to customize language display options for 
'	the Revision History (Compare Revision). The default 
'	implementation simply returns a default	code page, but the function may 
'	be customized to key off information provided by the Postings.
'
'	@param pNewerPosting [in] - the newer Revision Page object that can
'		provide the code page of that revision of the Posting
'
'	@param pOlderPosting [in] - the older Revision Page object that can
'		provide the code page of that revision of the Posting
'
'	@param pASPUtils [in] - the ASP utilities object that is used to grab
'		the default system code page.
' -------------------------------------------------------------------------
Function GetCodePageForRevisionComparison( pNewerPosting, pOlderPosting, pASPUtils )

	' -- it may use system default of the server
	' GetCodePageForRevisionComparison = pASPUtils.SystemCodePage
	
	' -- if you want to display mixture of lanaguges, use 650001 which represents UTF-8:
	GetCodePageForRevisionComparison = ID_CODEPAGE_UTF8
	
	' -- You may use other language specific CodePage value such as 932 for Japanese
	' GetCodePageForRevisionComparison = ID_CODEPAGE_JAPANESE
	
End Function  'GetCodePageForRevisionComparison


' -------------------------------------------------------------------------
'	[PUBLIC] For site admin to customize language display options for the 
'	Revision History (Compare Revision).  The default implementation is to 
'	use the UTF-8 character set, but the function may 
'	be customized to key off information provided by the Postings.
'
'	@param pNewerPosting [in] - the newer Revision Page object that can
'		provide the character set of that revision of the Posting.
'
'	@param pOlderPosting [in] - the older Revision Page object that can
'		provide the character set of that revision of the Posting.
' -------------------------------------------------------------------------
Function GetCharacterSetForRevisionComparison( pNewerPosting, pOlderPosting )

	' -- it may be left unspecified; this would leave it up to client browser to use its default
	' GetCharacterSetForRevisionComparison = ""
	
	' -- if you want to display mixture of lanaguges, use 650001 which represents UTF-8:
	GetCharacterSetForRevisionComparison = ID_CHARSET_UTF8
	
	' -- You may use other language specific Charset value such as "Shift-JIS" for Japanese
	' GetCharacterSetForRevisionComparison = ID_CHARSET_JAPANESE_SHIFTJIS
	
End Function  'GetCharacterSetForRevisionComparison

%>