<!--#include file="CodePageCharsetConstants.inc" -->
<%
'******************************************************************************
' File:		/NR/System/WBC/Customizable/WBCFuncPagesConfig/MLSDisplayConfig/
'			/ResourceBrowserConfig.inc
' Author:	Microsoft Corporation.
' Purpose:	Set up the the CodePage and Charset setting for all site browsing
'			dialogs, which include the "Resource Management", "Insert Images", 
'			"Insert Attachment" and "Insert Video" dialogs..
'
'******************************************************************************


' -------------------------------------------------------------------------
'	[PUBLIC] For site admin to customize language display options for all 
'	Resource-related dialog pages. The default implementation simply 
'	returns a default code page, but the function may be customized to 
'	key off information provided by the input parameters.
'
'	@param pGallery [in] - the current Resource Gallery context, if there
'		is one. It may be Nothing if the dialog page is displaying 
'		multiple Galleries or no Gallery.
'	@param pASPUtils [in] - the ASP utilities object that is used to grab
'		the default system code page.
' -------------------------------------------------------------------------
Function GetCodePageForResource( pGallery, pASPUtils )

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

' -------------------------------------------------------------------------
'	[PUBLIC] For site admin to customize language display options for all 
'	Resource-related dialog pages. The default implementation simply 
'	returns a default charset, but the function may be customized to 
'	key off information provided by the input parameters.
'
'	@param pGallery [in] - the current Resource Gallery context, if there
'		is one. It may be Nothing if the dialog page is displaying 
'		multiple Galleries or no Gallery.
' -------------------------------------------------------------------------
Function GetCharacterSetForResource( pGallery )

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


%>