Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    Problema accenti da interfaccia

    Ciao a tutti ho un problemino strano.....

    Allora ho un sito dal quale tramite interfaccia il cliente inserisce i contenuti vari.

    Il sito che ho qui nel server interno (quello di lavorazione per intenderci) funziona perfettamente.

    Una volta pubblicato il tutto se inserisco lettere accentate (sempre via interfaccia) invece di scrivere la lettera mette tutti quei simboletti strani...

    Qualcuno sa da cosa può dipendere?

    Grazie mille

  2. #2
    ah dimenticavo... sennò sembra un OT... sito e interfaccia sono costruiti in ASP

  3. #3

    Re: Problema accenti da interfaccia

    Originariamente inviato da Tonygnagno
    Una volta pubblicato il tutto se inserisco lettere accentate (sempre via interfaccia) invece di scrivere la lettera mette tutti quei simboletti strani...
    Se ti capita in visualizzazione prova a mettere il meta
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>

    fra i tag <head></head>


  4. #4
    niente da fare... già provato... nono funzia.

  5. #5

    perchè qui funziona tutto e online nooooooooooooooo

  6. #6
    ok.. ho trovato cosa non fa scrivere gli accenti... questo è il codice che includo nella pagina tramite tag di inclusione:
    codice:
    
    
    quello che viene incluso è questo:
    codice:
    <%
    Class FCKeditor
    
    	private sBasePath
    	private sInstanceName
    	private sWidth
    	private sHeight
    	private sToolbarSet
    	private sValue
    
    	private oConfig
    
    	Private Sub Class_Initialize()
    		sBasePath		= "/FCKeditor/"
    		sWidth			= "422"
    		sHeight			= "200"
    		sToolbarSet		= "Default"
    		sValue			= ""
    
    		Set oConfig = CreateObject("Scripting.Dictionary")
    	End Sub
    	
    	Public Property Let BasePath( basePathValue )
    		sBasePath = basePathValue
    	End Property
    
    	Public Property Let InstanceName( instanceNameValue )
    		sInstanceName = instanceNameValue
    	End Property
    
    	Public Property Let Width( widthValue )
    		sWidth = widthValue
    	End Property
    
    	Public Property Let Height( heightValue )
    		sHeight = heightValue
    	End Property
    
    	Public Property Let ToolbarSet( toolbarSetValue )
    		sToolbarSet = toolbarSetValue
    	End Property
    
    	Public Property Let Value( newValue )
    		If ( IsNull( newValue ) OR IsEmpty( newValue ) ) Then
    			sValue = ""
    		Else
    			sValue = newValue
    		End If
    	End Property
    
    	Public Property Let Config( configKey, configValue )
    		oConfig.Add configKey, configValue
    	End Property
    
    	Public Function Create( instanceName )
    		Response.Write "<div>"
    
    		If IsCompatible() Then
    
    			Dim sFile
    			If Request.QueryString( "fcksource" ) = "true" Then
    				sFile = "fckeditor.original.html"
    			Else
    				sFile = "fckeditor.html"
    			End If
    
    			Dim sLink
    			sLink = sBasePath & "FCKeditor/editor/" & sFile & "?InstanceName=" + instanceName
    
    			If (sToolbarSet & "") <> "" Then
    				sLink = sLink + "&amp;Toolbar=" & sToolbarSet
    			End If
    
    			' Render the linked hidden field.
    			Response.Write "<input type=""hidden"" id=""" & instanceName & """ name=""" & instanceName & """ value=""" & Server.HTMLEncode( sValue ) & """ style=""display:none"" />"
    
    			' Render the configurations hidden field.
    			Response.Write "<input type=""hidden"" id=""" & instanceName & "___Config"" value=""" & GetConfigFieldString() & """ style=""display:none"" />"
    
    			' Render the editor IFRAME.
    			Response.Write "<iframe id=""" & instanceName & "___Frame"" src=""" & sLink & """ width=""" & sWidth & """ height=""" & sHeight & """ frameborder=""no"" scrolling=""no""></iframe>"
    
    		Else
    
    			Dim sWidthCSS, sHeightCSS
    
    			If InStr( sWidth, "%" ) > 0  Then
    				sWidthCSS = sWidth
    			Else
    				sWidthCSS = sWidth & "px"
    			End If
    
    			If InStr( sHeight, "%" ) > 0  Then
    				sHeightCSS = sHeight
    			Else
    				sHeightCSS = sHeight & "px"
    			End If
    
    			Response.Write "<textarea name=""" & instanceName & """ rows=""4"" cols=""40"" style=""width: " & sWidthCSS & "; height: " & sHeightCSS & """>" & Server.HTMLEncode( sValue ) & "</textarea>"
    
    		End If
    
    		Response.Write "</div>"
    	End Function
    
    	Private Function IsCompatible()
    
    		Dim sAgent
    		sAgent = Request.ServerVariables("HTTP_USER_AGENT")
    
    		Dim iVersion
    
    		If InStr(sAgent, "MSIE") > 0 AND InStr(sAgent, "mac") <= 0  AND InStr(sAgent, "Opera") <= 0 Then
    			iVersion = CInt( ToNumericFormat( Mid(sAgent, InStr(sAgent, "MSIE") + 5, 3) ) )
    			IsCompatible = ( iVersion >= 5.5 )
    		ElseIf InStr(sAgent, "Gecko/") > 0 Then
    			iVersion = CLng( Mid( sAgent, InStr( sAgent, "Gecko/" ) + 6, 8 ) )
    			IsCompatible = ( iVersion >= 20030210 )
    		Else
    			IsCompatible = False
    		End If
    
    	End Function
    
    	' By Agrotic
    	' On ASP, when converting string to numbers, the number decimal separator is localized
    	' so 5.5 will not work on systems were the separator is "," and vice versa.
    	Private Function ToNumericFormat( numberStr )
    
    		If IsNumeric( "5.5" ) Then
    			ToNumericFormat = Replace( numberStr, ",", ".")
    		Else
    			ToNumericFormat = Replace( numberStr, ".", ",")
    		End If
    
    	End Function
    
    	Private Function GetConfigFieldString()
    
    		Dim sParams
    
    		Dim bFirst
    		bFirst = True
    
    		Dim sKey
    		For Each sKey in oConfig
    
    			If bFirst = False Then
    				sParams = sParams & "&amp;"
    			Else
    				bFirst = False
    			End If
    
    			sParams = sParams & EncodeConfig( sKey ) & "=" & EncodeConfig( oConfig(sKey) )
    
    		Next
    
    		GetConfigFieldString = sParams
    
    	End Function
    	
    	Private Function EncodeConfig( valueToEncode )
    		EncodeConfig = Replace( valueToEncode, "&", "%26" )
    		EncodeConfig = Replace( EncodeConfig , "=", "%3D" )
    		EncodeConfig = Replace( EncodeConfig , """", "%22" )
    	End Function
    
    End Class
    %>
    Il problema è che se io metto un if tipo questo
    codice:
    <%
    if Session("ciao") = "" then
    %>
    
    <%
    end if
    %>
    prima dell'inclusione per eliminarla quando non serve mi va in errore.... mi dice:
    codice:
    Errore di compilazione di Microsoft VBScript error '800a03ea' 
    
    Errore di sintassi 
    
    /admin/FCKeditor/fckeditor.asp, line 2 
    
    Class FCKeditor
    Non ne vengo fuori

    e resta il dilemma comunque che qui nel server funziona tutto.. quando pubblico non funziona più....... unica differenza qui c'è Server 2000 online c'è il 2003.

    AIUTOOOO

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.